Changeset 889 for trunk/source/interfaces/basic/src
- Timestamp:
- Nov 25, 2008, 5:27:14 PM (16 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.