Changeset 608 for trunk/geant4/interfaces/common
- Timestamp:
- Nov 15, 2007, 7:41:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/common/src/G4Qt.cc
r606 r608 25 25 // 26 26 // 27 // $Id: G4Qt.cc,v 1. 5 2007/11/15 10:10:02lgarnier Exp $27 // $Id: G4Qt.cc,v 1.7 2007/11/15 18:24:28 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 88 88 /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/ 89 89 { 90 #ifdef GEANT4_QT_DEBUG 90 91 printf("G4Qt::G4Qt try to inited Qt\n"); 92 #endif 91 93 if(QtInited==FALSE) { //Qt should be Inited once ! 94 #ifdef GEANT4_QT_DEBUG 92 95 printf("G4Qt::G4Qt inited Qt\n"); 96 #endif 93 97 #if QT_VERSION < 0x040000 94 98 qApp = new QApplication (a_argn, a_args); 95 99 // QApplication qApp(a_argn, a_args); 100 // if(&qApp == NULL) { 96 101 #else 97 102 new QApplication (a_argn, a_args); 98 103 #endif 104 if(!qApp) { 99 105 100 if(qApp==NULL) {101 106 G4cout << "G4Qt : Unable to init Qt." << G4endl; 102 107 } else { 103 108 QtInited = TRUE; 109 //#if QT_VERSION < 0x040000 110 // SetMainInteractor (&qApp); 111 //#else 104 112 SetMainInteractor (qApp); 113 //#endif 105 114 SetArguments (a_argn,a_args); 115 #ifdef GEANT4_QT_DEBUG 106 116 printf("G4Qt::G4Qt inited Qt END\n"); 117 #endif 107 118 } 108 119 } 109 if (qApp) 120 #ifdef GEANT4_QT_DEBUG 121 if (qApp) { 110 122 printf("G4Qt::qApp exist\n"); 111 else123 } else { 112 124 printf("G4Qt::qApp not exist\n"); 125 } 126 #endif 113 127 // AddDispatcher ((G4DispatchFunction)XtDispatchEvent); 114 128 }
Note: See TracChangeset
for help on using the changeset viewer.