Ignore:
Timestamp:
Nov 26, 2007, 6:10:35 PM (17 years ago)
Author:
garnier
Message:

r670@mac-90108: laurentgarnier | 2007-11-26 18:13:28 +0100
mise a jour pour Qt3 linux

File:
1 edited

Legend:

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

    r615 r617  
    2929//
    3030// L. Garnier
    31 
    32 #define GEANT4_QT_DEBUG
    3331
    3432#if defined(G4INTY_BUILD_QT) || defined(G4INTY_USE_QT)
     
    10199#endif
    102100#if QT_VERSION < 0x040000
    103     // EN TEST    qApp = new QApplication (a_argn, a_args);
     101    qApp = new QApplication (a_argn, a_args);
    104102    //    QApplication qApp(a_argn, a_args);
    105103    //    if(&qApp == NULL) {
     
    124122  }
    125123#ifdef GEANT4_QT_DEBUG
    126   //  if (qApp) {
     124  if (qApp) {
    127125    printf("G4Qt::qApp exist\n");
    128     //  =================== EN TEST ==============
    129     new QApplication ( a_argn, a_args );
    130 
    131     QPushButton hello( "Hello world!", 0 );
    132     hello.resize( 100, 30 );
    133 
    134     qApp->setMainWidget( &hello );
    135     hello.show();
    136     qApp->exec();
    137     printf("G4Qt::qApp exist END\n");
    138     //  =================== EN TEST ==============
    139     //  }  else {
    140     //    printf("G4Qt::qApp not exist\n");
    141     //  }
     126  }  else {
     127    printf("G4Qt::qApp not exist\n");
     128  }
    142129#endif
    143130  //  AddDispatcher     ((G4DispatchFunction)XtDispatchEvent);
Note: See TracChangeset for help on using the changeset viewer.