Ignore:
Timestamp:
Nov 15, 2007, 11:56:03 AM (17 years ago)
Author:
garnier
Message:

r647@mac-90108: laurentgarnier | 2007-11-15 11:32:46 +0100
Ok en Qt 4.3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/interfaces/common/src/G4Qt.cc

    r602 r606  
    2525//
    2626//
    27 // $Id: G4Qt.cc,v 1.4 2007/11/09 15:03:21 lgarnier Exp $
     27// $Id: G4Qt.cc,v 1.5 2007/11/15 10:10:02 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    9191  if(QtInited==FALSE) {  //Qt should be Inited once !
    9292    printf("G4Qt::G4Qt inited Qt\n");
    93 
     93#if QT_VERSION < 0x040000
     94    qApp = new QApplication (a_argn, a_args);
     95    //    QApplication qApp(a_argn, a_args);
     96#else
    9497    new QApplication (a_argn, a_args);
     98#endif
    9599
    96100    if(qApp==NULL) {
    97101      G4cout        << "G4Qt : Unable to init Qt." << G4endl;
     102    } else {
     103      QtInited  = TRUE;
     104      SetMainInteractor (qApp);
     105      SetArguments      (a_argn,a_args);
     106      printf("G4Qt::G4Qt inited Qt END\n");
    98107    }
    99     QtInited  = TRUE;
    100     SetMainInteractor (qApp);
    101108  }
    102   SetArguments      (a_argn,a_args);
     109  if (qApp)
     110    printf("G4Qt::qApp exist\n");
     111  else
     112    printf("G4Qt::qApp not exist\n");
    103113  //  AddDispatcher     ((G4DispatchFunction)XtDispatchEvent);
    104114}
Note: See TracChangeset for help on using the changeset viewer.