- Timestamp:
- Nov 25, 2008, 5:27:14 PM (16 years ago)
- Location:
- trunk/source/interfaces
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/interfaces/basic/src/G4UIQt.cc
r876 r889 25 25 // 26 26 // 27 // $Id: G4UIQt.cc,v 1.2 2 2008/11/06 10:06:33lgarnier Exp $27 // $Id: G4UIQt.cc,v 1.24 2008/11/24 13:50:34 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 106 106 { 107 107 G4Qt* interactorManager = G4Qt::getInstance (argc,argv,(char*)"Qt"); 108 if (!(QApplication*)interactorManager->GetMainInteractor()) { 109 G4cout << "G4UIQt : Unable to init Qt. Aborted" << G4endl; 110 } 111 108 112 G4UImanager* UI = G4UImanager::GetUIpointer(); 109 113 if(UI!=NULL) UI->SetSession(this); … … 224 228 // Add a quit subMenu 225 229 QPopupMenu *fileMenu = new QPopupMenu( fMainWindow); 226 fileMenu->insertItem( "&Quit ter", this, SLOT(ExitSession()), CTRL+Key_Q );230 fileMenu->insertItem( "&Quit", this, SLOT(ExitSession()), CTRL+Key_Q ); 227 231 fMainWindow->menuBar()->insertItem( QString("&File"), fileMenu ); 228 232 … … 237 241 // Add a quit subMenu 238 242 QMenu *fileMenu = fMainWindow->menuBar()->addMenu("File"); 239 fileMenu->addAction("Quit ter", this, SLOT(ExitSession()));243 fileMenu->addAction("Quit", this, SLOT(ExitSession())); 240 244 241 245 // Add a Help menu -
trunk/source/interfaces/common/src/G4Qt.cc
r876 r889 25 25 // 26 26 // 27 // $Id: G4Qt.cc,v 1.1 1 2008/11/06 10:06:33lgarnier Exp $27 // $Id: G4Qt.cc,v 1.12 2008/11/19 16:11:52 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 122 122 *p_argn = argn; 123 123 #if QT_VERSION < 0x040000 124 qApp = new QApplication ( argn, args);124 qApp = new QApplication (*p_argn, args); 125 125 #else 126 new QApplication ( argn, args);126 new QApplication (*p_argn, args); 127 127 #endif 128 128 if(!qApp) {
Note: See TracChangeset
for help on using the changeset viewer.