Changeset 633 for trunk/geant4/interfaces
- Timestamp:
- Dec 3, 2007, 6:16:19 PM (17 years ago)
- Location:
- trunk/geant4/interfaces/basic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/basic/include/G4UIQt.hh
r632 r633 152 152 void HelpTreeDoubleClicCallback( QListViewItem*); 153 153 #else 154 void HelpTreeDoubleClicCallback( QTreeWidgetItem* , int);154 void HelpTreeDoubleClicCallback( QTreeWidgetItem*); 155 155 #endif 156 156 void ShowHelpCallback(); -
trunk/geant4/interfaces/basic/src/G4UIQt.cc
r632 r633 30 30 // L. Garnier 31 31 32 //#define DEBUG32 //#define GEANT4_QT_DEBUG 33 33 34 34 #ifdef G4UI_BUILD_QT_SESSION … … 547 547 fHelpDialog = new QDialog(0,0,FALSE,Qt::WStyle_Title | Qt::WStyle_SysMenu | Qt::WStyle_MinMax ); 548 548 QVBoxLayout *vLayout = new QVBoxLayout(fHelpDialog); 549 QSplitter *splitter = new QSplitter(Qt::Horizontal,fHelpDialog);550 549 #else 551 550 QVBoxLayout *vLayout = new QVBoxLayout(); 552 551 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); 555 554 QPushButton *exitButton = new QPushButton("Exit",fHelpDialog); 556 555 connect(exitButton, SIGNAL(clicked()), fHelpDialog,SLOT(close())); … … 582 581 #endif 583 582 584 #if QT_VERSION < 0x040000585 583 fHelpArea = new QTextEdit(splitter); 586 #else587 fHelpArea = new QTextEdit();588 #endif589 584 fHelpArea->setReadOnly(true); 590 585 … … 1255 1250 #else 1256 1251 QTreeWidgetItem* item 1257 ,int1258 1252 #endif 1259 1253 ) -
trunk/geant4/interfaces/basic/src/G4UIQt_moc.cc
r632 r633 303 303 93, 31, 31, 31, 0x08, 304 304 117, 31, 31, 31, 0x08, 305 140, 189, 31, 31, 0x08,306 1 91, 31, 31, 31, 0x08,307 2 10, 31, 31, 31, 0x08,305 140, 31, 31, 31, 0x08, 306 185, 31, 31, 31, 0x08, 307 204, 31, 31, 31, 0x08, 308 308 309 309 0 // eod … … 315 315 "CommandEnteredCallback()\0" 316 316 "ButtonCallback(QString)\0HelpTreeClicCallback()\0" 317 "HelpTreeDoubleClicCallback(QTreeWidgetItem* ,int)\0"318 " ,\0ShowHelpCallback()\0CommandHistoryCallback()\0"317 "HelpTreeDoubleClicCallback(QTreeWidgetItem*)\0" 318 "ShowHelpCallback()\0CommandHistoryCallback()\0" 319 319 }; 320 320 … … 333 333 if (!_clname) return 0; 334 334 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)); 336 336 if (!strcmp(_clname, "G4VBasicShell")) 337 return static_cast< G4VBasicShell*>(const_cast<G4UIQt*>(this));337 return static_cast< G4VBasicShell*>(const_cast< G4UIQt*>(this)); 338 338 if (!strcmp(_clname, "G4VInteractiveSession")) 339 return static_cast< G4VInteractiveSession*>(const_cast<G4UIQt*>(this));339 return static_cast< G4VInteractiveSession*>(const_cast< G4UIQt*>(this)); 340 340 return QObject::qt_metacast(_clname); 341 341 } … … 354 354 case 4: ButtonCallback((*reinterpret_cast< const QString(*)>(_a[1]))); break; 355 355 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; 357 357 case 7: ShowHelpCallback(); break; 358 358 case 8: CommandHistoryCallback(); break;
Note: See TracChangeset
for help on using the changeset viewer.