Changeset 624


Ignore:
Timestamp:
Nov 29, 2007, 5:13:27 PM (17 years ago)
Author:
garnier
Message:

corrections de bugs

Location:
trunk/geant4
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/interfaces/basic/src/G4UIQt.cc

    r620 r624  
    237237#endif
    238238  fMainWindow->setCentralWidget(splitter);
     239  ((QApplication*)interactorManager->GetMainInteractor())->setMainWidget(fMainWindow);
    239240
    240241#if QT_VERSION < 0x040000
     
    448449  fTextArea->verticalScrollBar()->setSliderPosition(fTextArea->verticalScrollBar()->maximum());
    449450#endif
     451  // Slow down everything : disababled
    450452  interactorManager->FlushAndWaitExecution();
    451453  return 0;
     
    543545  QAction *action = new QAction(QString(aLabel),QKeySequence::QKeySequence (),signalMapper, SLOT(map()));
    544546  action->addTo(parent);
    545  connect(action,SIGNAL(clicked()),signalMapper,SLOT(map()));
     547 connect(action,SIGNAL(activated()),signalMapper,SLOT(map()));
    546548
    547549#else
     
    570572  if (!fHelpDialog) {
    571573#if QT_VERSION < 0x040000
    572     fHelpDialog = new QDialog(fMainWindow,0,FALSE,Qt::WStyle_Title | Qt::WStyle_SysMenu | Qt::WStyle_MinMax );
     574    fHelpDialog = new QDialog(0,0,FALSE,Qt::WStyle_Title | Qt::WStyle_SysMenu | Qt::WStyle_MinMax );
    573575    QVBoxLayout *vLayout = new QVBoxLayout(fHelpDialog);
    574576    QSplitter *splitter = new QSplitter(Qt::Horizontal,fHelpDialog);
  • trunk/geant4/interfaces/basic/src/G4UIQt_moc.cc

    r619 r624  
    1515#include <qapplication.h>
    1616
    17 #if defined(Q_MOC_OUTPUT_REVISION) && (Q_MOC_OUTPUT_REVISION = 26)
     17#if defined(Q_MOC_OUTPUT_REVISION) && (Q_MOC_OUTPUT_REVISION == 26)
    1818
    1919#include <private/qucomextra_p.h>
     
    159159
    160160
    161 #if defined(Q_MOC_OUTPUT_REVISION) && (Q_MOC_OUTPUT_REVISION = 58)
     161#if defined(Q_MOC_OUTPUT_REVISION) && (Q_MOC_OUTPUT_REVISION == 58)
    162162
    163163/****************************************************************************
     
    262262#else
    263263
    264 #if defined(Q_MOC_OUTPUT_REVISION) && (Q_MOC_OUTPUT_REVISION = 59)
     264#if defined(Q_MOC_OUTPUT_REVISION) && (Q_MOC_OUTPUT_REVISION == 59)
    265265
    266266/****************************************************************************
  • trunk/geant4/specific-geant4-dev.sh

    r617 r624  
    2828  export G4LEDATA=$G4DATA/G4EMLOW3.0
    2929#  export QTHOME=/usr/local/Qt/3.3.8
    30   export QTHOME=/usr/local/Qt/4.2.2
     30#  export QTHOME=/usr/local/Qt/4.2.2
     31  export QTHOME=/sw
     32  export QTLIBS="-L/sw/lib -lqt-mt"
     33
    3134  #//////////////////////////////////////////////////////////
    3235  # GUI, Visualization :
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r617 r624  
    171171    bool found = false;
    172172#if QT_VERSION < 0x040000
    173     QWidgetList  *list = QApplication::allWidgets();
    174     QWidgetListIt it( *list );         // iterate over the widgets
    175     QWidget * widget;
    176     while ( (widget=it.current()) != 0 ) {  // for each widget...
    177       ++it;
    178       if ((found== false) && (widget->inherits("QMainWindow"))) {
    179 #ifdef GEANT4_QT_DEBUG
    180         printf("G4OpenGLQtViewer::CreateMainWindow case Qapp exist\n");
    181 #endif
    182         GLWindow = new QDialog(widget,0,FALSE,Qt::WStyle_Title | Qt::WStyle_SysMenu | Qt::WStyle_MinMax );
    183         found = true;
    184       }
    185     }
    186     delete list;                      // delete the list, not the widgets
    187 #else
    188     foreach (QWidget *widget, QApplication::allWidgets()) {
    189       if ((found== false) && (widget->inherits("QMainWindow"))) {
    190 #ifdef GEANT4_QT_DEBUG
    191         printf("G4OpenGLQtViewer::CreateMainWindow case Qapp exist\n");
    192 #endif
    193         GLWindow = new QDialog(widget,Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint);
    194         found = true;
    195       }
    196     }
     173    //    QWidgetList  *list = QApplication::allWidgets();
     174    //    QWidgetListIt it( *list );         // iterate over the widgets
     175    //    QWidget * widget;
     176    //    while ( (widget=it.current()) != 0 ) {  // for each widget...
     177    //      ++it;
     178    //      if ((found== false) && (widget->inherits("QMainWindow"))) {
     179    GLWindow = new QDialog(0,0,FALSE,Qt::WStyle_Title | Qt::WStyle_SysMenu | Qt::WStyle_MinMax );
     180    //        found = true;
     181    //      }
     182    //    }
     183    //    delete list;                      // delete the list, not the widgets
     184#else
     185    //    foreach (QWidget *widget, QApplication::allWidgets()) {
     186    //      if ((found== false) && (widget->inherits("QMainWindow"))) {
     187    GLWindow = new QDialog(0,Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint);
     188    //        found = true;
     189    //      }
     190    //    }
    197191#endif
    198192
Note: See TracChangeset for help on using the changeset viewer.