Ignore:
Timestamp:
Nov 25, 2008, 5:27:14 PM (16 years ago)
Author:
garnier
Message:

See History

Location:
trunk/source/interfaces
Files:
2 edited

Legend:

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

    r876 r889  
    2525//
    2626//
    27 // $Id: G4UIQt.cc,v 1.22 2008/11/06 10:06:33 lgarnier Exp $
     27// $Id: G4UIQt.cc,v 1.24 2008/11/24 13:50:34 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    106106{
    107107  G4Qt* interactorManager = G4Qt::getInstance (argc,argv,(char*)"Qt");
     108  if (!(QApplication*)interactorManager->GetMainInteractor()) {
     109    G4cout        << "G4UIQt : Unable to init Qt. Aborted" << G4endl;
     110  }
     111 
    108112  G4UImanager* UI = G4UImanager::GetUIpointer();
    109113  if(UI!=NULL) UI->SetSession(this);
     
    224228  // Add a quit subMenu
    225229  QPopupMenu *fileMenu = new QPopupMenu( fMainWindow);
    226   fileMenu->insertItem( "&Quitter",  this, SLOT(ExitSession()), CTRL+Key_Q );
     230  fileMenu->insertItem( "&Quit",  this, SLOT(ExitSession()), CTRL+Key_Q );
    227231  fMainWindow->menuBar()->insertItem( QString("&File"), fileMenu );
    228232
     
    237241  // Add a quit subMenu
    238242  QMenu *fileMenu = fMainWindow->menuBar()->addMenu("File");
    239   fileMenu->addAction("Quitter", this, SLOT(ExitSession()));
     243  fileMenu->addAction("Quit", this, SLOT(ExitSession()));
    240244
    241245  // Add a Help menu
  • trunk/source/interfaces/common/src/G4Qt.cc

    r876 r889  
    2525//
    2626//
    27 // $Id: G4Qt.cc,v 1.11 2008/11/06 10:06:33 lgarnier Exp $
     27// $Id: G4Qt.cc,v 1.12 2008/11/19 16:11:52 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    122122      *p_argn = argn;
    123123#if QT_VERSION < 0x040000
    124       qApp = new QApplication (argn, args);
     124      qApp = new QApplication (*p_argn, args);
    125125#else
    126       new QApplication (argn, args);
     126      new QApplication (*p_argn, args);
    127127#endif
    128128      if(!qApp) {
Note: See TracChangeset for help on using the changeset viewer.