Changeset 836 for trunk/source/interfaces/common/src
- Timestamp:
- Jun 11, 2008, 2:29:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/interfaces/common/src/G4Qt.cc
r632 r836 29 29 // 30 30 // L. Garnier 31 32 #define GEANT4_QT_DEBUG 31 33 32 34 #if defined(G4INTY_BUILD_QT) || defined(G4INTY_USE_QT) … … 93 95 if(QtInited==FALSE) { //Qt should be Inited once ! 94 96 #ifdef GEANT4_QT_DEBUG 95 printf("G4Qt::G4Qt inited Qt\n");96 #endif97 #if QT_VERSION < 0x04000098 qApp = new QApplication (a_argn, a_args);99 // QApplication qApp(a_argn, a_args);100 // if(&qApp == NULL) {101 #else102 new QApplication (a_argn, a_args);103 97 #endif 104 98 if(!qApp) { 105 99 #if QT_VERSION < 0x040000 100 qApp = new QApplication (a_argn, a_args); 101 // QApplication qApp(a_argn, a_args); 102 // if(&qApp == NULL) { 103 #else 104 new QApplication (a_argn, a_args); 105 #endif 106 } 107 if(!qApp) { 106 108 G4cout << "G4Qt : Unable to init Qt." << G4endl; 107 109 } else { 108 110 QtInited = TRUE; 109 //#if QT_VERSION < 0x040000110 // SetMainInteractor (&qApp);111 //#else112 111 SetMainInteractor (qApp); 113 //#endif114 112 SetArguments (a_argn,a_args); 115 113 #ifdef GEANT4_QT_DEBUG … … 146 144 } 147 145 /***************************************************************************/ 148 /** 149 Si j'ai bien compris, cette fonction ne sert à rien 150 */ 146 // Should do nothing in Qt 151 147 void* G4Qt::GetEvent ( 152 148 ) … … 154 150 /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/ 155 151 { 156 //FIXME157 // G4cout << "G4Qt : Rien compris a cette fonction G4Qt::GetEvent." << G4endl;158 // static XEvent event;159 // if(appContext==NULL) return NULL;160 // if(mainApp==NULL) return NULL;161 // QtAppNextEvent (appContext, &event);162 // return &event;163 printf("*");164 152 return 0; 165 153 } … … 170 158 /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/ 171 159 { 172 // printf("G4Qt::FlushAndWaitExecution :: Flush ....\n");173 160 if(!qApp) return; 174 161 qApp->processEvents();
Note: See TracChangeset
for help on using the changeset viewer.