Ignore:
Timestamp:
Nov 15, 2007, 7:41:15 PM (17 years ago)
Author:
garnier
Message:

r657@mac-90108: laurentgarnier | 2007-11-15 19:44:52 +0100
ajout d un flag pour debug

File:
1 edited

Legend:

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

    r606 r608  
    2525//
    2626//
    27 // $Id: G4Qt.cc,v 1.5 2007/11/15 10:10:02 lgarnier Exp $
     27// $Id: G4Qt.cc,v 1.7 2007/11/15 18:24:28 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    8888/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
    8989{
     90#ifdef GEANT4_QT_DEBUG
    9091  printf("G4Qt::G4Qt try to inited Qt\n");
     92#endif
    9193  if(QtInited==FALSE) {  //Qt should be Inited once !
     94#ifdef GEANT4_QT_DEBUG
    9295    printf("G4Qt::G4Qt inited Qt\n");
     96#endif
    9397#if QT_VERSION < 0x040000
    9498    qApp = new QApplication (a_argn, a_args);
    9599    //    QApplication qApp(a_argn, a_args);
     100    //    if(&qApp == NULL) {
    96101#else
    97102    new QApplication (a_argn, a_args);
    98103#endif
     104    if(!qApp) {
    99105
    100     if(qApp==NULL) {
    101106      G4cout        << "G4Qt : Unable to init Qt." << G4endl;
    102107    } else {
    103108      QtInited  = TRUE;
     109      //#if QT_VERSION < 0x040000
     110      //      SetMainInteractor (&qApp);
     111      //#else
    104112      SetMainInteractor (qApp);
     113      //#endif
    105114      SetArguments      (a_argn,a_args);
     115#ifdef GEANT4_QT_DEBUG
    106116      printf("G4Qt::G4Qt inited Qt END\n");
     117#endif
    107118    }
    108119  }
    109   if (qApp)
     120#ifdef GEANT4_QT_DEBUG
     121  if (qApp) {
    110122    printf("G4Qt::qApp exist\n");
    111   else
     123  }  else {
    112124    printf("G4Qt::qApp not exist\n");
     125  }
     126#endif
    113127  //  AddDispatcher     ((G4DispatchFunction)XtDispatchEvent);
    114128}
Note: See TracChangeset for help on using the changeset viewer.