Ignore:
Timestamp:
Oct 14, 2009, 12:21:27 PM (15 years ago)
Author:
garnier
Message:

pb quand on ne met pas la vis QT corrige

Location:
trunk/source/visualization/OpenGL
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/include/G4OpenGLQtViewer.hh

    r1112 r1127  
    3939#include "globals.hh"
    4040
     41// FIXME : L.Garnier 22 Sept 09
     42// This include should be the first, because we should include
     43// qobject.h first. I don't know why, but on macOSX 10.5.8, if
     44// we do not, it says :
     45// /Library/Frameworks/QtCore.framework/Headers/qglobal.h:1895: error: redefinition of ‘class QTypeInfo<char>’
     46// /Library/Frameworks/QtCore.framework/Headers/qglobal.h:1894: error: previous definition of ‘class QTypeInfo<char>’
     47
     48#include <qobject.h>
    4149#include "G4OpenGLViewer.hh"
    4250
    43 #include <qobject.h>
    4451#include <qpoint.h>
    4552
  • trunk/source/visualization/OpenGL/src/G4OpenGLSceneHandler.cc

    r1125 r1127  
    4545
    4646
    47 // FIXME : L.Garnier 22 Sept 09
    48 // This include should be the first, because we should include
    49 // qobject.h first. I don't know why, but on macOSX 10.5.8, if
    50 // we do not, it says :
    51 // /Library/Frameworks/QtCore.framework/Headers/qglobal.h:1895: error: redefinition of ‘class QTypeInfo<char>’
    52 // /Library/Frameworks/QtCore.framework/Headers/qglobal.h:1894: error: previous definition of ‘class QTypeInfo<char>’
    53 
    54 #include <qobject.h>
    5547#include "G4OpenGLQtViewer.hh"
    5648#include "G4OpenGLSceneHandler.hh"
  • trunk/source/visualization/OpenGL/src/G4OpenGLXmWindowHandlingCallbacks.cc

    r1049 r1127  
    6565  while (XCheckWindowEvent(XtDisplay(w), data->window,
    6666                           ResizeRedirectMask, &event)) {
    67     printf("G4OpenGLXmViewer::resize_callback ------ next RESIZE ! %d\n");
     67    printf("G4OpenGLXmViewer::resize_callback ------ next RESIZE !\n");
    6868  }
    6969#endif
     
    8181
    8282
    83 void G4OpenGLXmViewer::activate_callback (Widget w,
    84                                       XtPointer clientData,
    85                                       XtPointer callData)
     83void G4OpenGLXmViewer::activate_callback (Widget,
     84                                      XtPointer,
     85                                      XtPointer)
    8686{
    8787#ifdef G4DEBUG_VIS_OGL
     
    125125    if (((XExposeEvent *) data->event)->count != 0) {
    126126#ifdef G4DEBUG_VIS_OGL
    127       printf("G4OpenGLXmViewer::expose_callback NOOOOO %d %d type:%d number:%d send:%d x:%d y:%d w:%d h:%d c:%d\n",width,height,
     127      printf("G4OpenGLXmViewer::expose_callback NOOOOO %d %d type:%d number:%d send:%lud x:%d y:%d w:%d h:%d c:%d\n",width,height,
    128128           ((XExposeEvent *) data->event)->type,
    129129           ((XExposeEvent *) data->event)->serial,
     
    140140    }
    141141#ifdef G4DEBUG_VIS_OGL
    142     printf("G4OpenGLXmViewer::expose_callback Should redraw %d %d type:%d number:%d send:%d x:%d y:%d w:%d h:%d c:%d\n",width,height,
     142    printf("G4OpenGLXmViewer::expose_callback Should redraw %d %d type:%d number:%d send:%lud x:%d y:%d w:%d h:%d c:%d\n",width,height,
    143143           ((XExposeEvent *) data->event)->type,
    144144           ((XExposeEvent *) data->event)->serial,
Note: See TracChangeset for help on using the changeset viewer.