Ignore:
Timestamp:
Dec 3, 2007, 6:16:19 PM (17 years ago)
Author:
garnier
Message:

debut de correction du ticket #98

Location:
trunk/geant4/interfaces/basic
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/interfaces/basic/include/G4UIQt.hh

    r632 r633  
    152152  void HelpTreeDoubleClicCallback( QListViewItem*);
    153153#else
    154   void HelpTreeDoubleClicCallback( QTreeWidgetItem*, int);
     154  void HelpTreeDoubleClicCallback( QTreeWidgetItem*);
    155155#endif
    156156  void ShowHelpCallback();
  • trunk/geant4/interfaces/basic/src/G4UIQt.cc

    r632 r633  
    3030// L. Garnier
    3131
    32 //#define DEBUG
     32//#define GEANT4_QT_DEBUG
    3333
    3434#ifdef G4UI_BUILD_QT_SESSION
     
    547547    fHelpDialog = new QDialog(0,0,FALSE,Qt::WStyle_Title | Qt::WStyle_SysMenu | Qt::WStyle_MinMax );
    548548    QVBoxLayout *vLayout = new QVBoxLayout(fHelpDialog);
    549     QSplitter *splitter = new QSplitter(Qt::Horizontal,fHelpDialog);
    550549#else
    551550    QVBoxLayout *vLayout = new QVBoxLayout();
    552551    fHelpDialog = new QDialog(0,Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint);
    553     QSplitter *splitter = new QSplitter(Qt::Horizontal);
    554 #endif
     552#endif
     553    QSplitter *splitter = new QSplitter(Qt::Horizontal,fHelpDialog);
    555554    QPushButton *exitButton = new QPushButton("Exit",fHelpDialog);
    556555    connect(exitButton, SIGNAL(clicked()), fHelpDialog,SLOT(close()));
     
    582581#endif
    583582
    584 #if QT_VERSION < 0x040000
    585583    fHelpArea = new QTextEdit(splitter);
    586 #else
    587     fHelpArea = new QTextEdit();
    588 #endif
    589584    fHelpArea->setReadOnly(true);
    590585
     
    12551250#else
    12561251QTreeWidgetItem* item
    1257 ,int
    12581252#endif
    12591253)
  • trunk/geant4/interfaces/basic/src/G4UIQt_moc.cc

    r632 r633  
    303303      93,   31,   31,   31, 0x08,
    304304     117,   31,   31,   31, 0x08,
    305      140,  189,   31,   31, 0x08,
    306      191,   31,   31,   31, 0x08,
    307      210,   31,   31,   31, 0x08,
     305     140,   31,   31,   31, 0x08,
     306     185,   31,   31,   31, 0x08,
     307     204,   31,   31,   31, 0x08,
    308308
    309309       0        // eod
     
    315315    "CommandEnteredCallback()\0"
    316316    "ButtonCallback(QString)\0HelpTreeClicCallback()\0"
    317     "HelpTreeDoubleClicCallback(QTreeWidgetItem*,int)\0"
    318     ",\0ShowHelpCallback()\0CommandHistoryCallback()\0"
     317    "HelpTreeDoubleClicCallback(QTreeWidgetItem*)\0"
     318    "ShowHelpCallback()\0CommandHistoryCallback()\0"
    319319};
    320320
     
    333333    if (!_clname) return 0;
    334334    if (!strcmp(_clname, qt_meta_stringdata_G4UIQt))
    335         return static_cast<void*>(const_cast<G4UIQt*>(this));
     335        return static_cast<void*>(const_cast< G4UIQt*>(this));
    336336    if (!strcmp(_clname, "G4VBasicShell"))
    337         return static_cast<G4VBasicShell*>(const_cast<G4UIQt*>(this));
     337        return static_cast< G4VBasicShell*>(const_cast< G4UIQt*>(this));
    338338    if (!strcmp(_clname, "G4VInteractiveSession"))
    339         return static_cast<G4VInteractiveSession*>(const_cast<G4UIQt*>(this));
     339        return static_cast< G4VInteractiveSession*>(const_cast< G4UIQt*>(this));
    340340    return QObject::qt_metacast(_clname);
    341341}
     
    354354        case 4: ButtonCallback((*reinterpret_cast< const QString(*)>(_a[1]))); break;
    355355        case 5: HelpTreeClicCallback(); break;
    356         case 6: HelpTreeDoubleClicCallback((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
     356        case 6: HelpTreeDoubleClicCallback((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1]))); break;
    357357        case 7: ShowHelpCallback(); break;
    358358        case 8: CommandHistoryCallback(); break;
Note: See TracChangeset for help on using the changeset viewer.