Changeset 1255 for trunk/source/interfaces/basic/src
- Timestamp:
- May 20, 2010, 11:47:43 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/interfaces/basic/src/G4UIQt.cc
r1252 r1255 25 25 // 26 26 // 27 // $Id: G4UIQt.cc,v 1.3 6 2010/05/19 07:18:50lgarnier Exp $27 // $Id: G4UIQt.cc,v 1.37 2010/05/20 07:01:03 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 125 125 126 126 G4UImanager* UI = G4UImanager::GetUIpointer(); 127 128 // L.Garnier : This statement does not give the good pointer I think129 127 if(UI!=NULL) UI->SetSession(this); 130 128 if(UI!=NULL) UI->SetG4UIWindow(this); 131 132 // if(UI!=NULL) UI->SetG4UIWindow(this);133 134 #ifdef G4DEBUG_INTERFACES_BASIC135 printf("G4UIQt:: recheck Session : this %d UImanager:%d\n",this,UI);136 G4UIQt * uiQt2 = static_cast<G4UIQt*> (UI->GetG4UIWindow());137 printf("G4UIQt:: recheck Session : %d UImanager:%d\n",uiQt2,UI);138 #endif139 129 140 130 // Check if already define in external app QMainWindow … … 168 158 169 159 #ifdef G4DEBUG_INTERFACES_BASIC 170 printf("G4UIQt::Initialise after main window creation +++++++++++ 160 printf("G4UIQt::Initialise after main window creation +++++++++++\n"); 171 161 #endif 172 162 … … 321 311 if(UI!=NULL) UI->SetCoutDestination(this); // TO KEEP 322 312 323 // interactorManager->SetG4UI(this);324 325 313 #if QT_VERSION < 0x040000 326 314 fMainWindow->setCaption( tr( "G4UI Session" )); … … 347 335 printf("G4UIQt::G4UIQt END\n"); 348 336 #endif 349 #ifdef G4DEBUG_INTERFACES_BASIC350 printf("G4UIQt:: this : %d UImanager:%d\n",this,UI);351 #endif352 337 } 353 338 … … 363 348 if(UI!=NULL) { // TO KEEP 364 349 UI->SetSession(NULL); // TO KEEP 365 UI->SetG4UIWindow(NULL); // TO KEEP350 UI->SetG4UIWindow(NULL); 366 351 UI->SetCoutDestination(NULL); // TO KEEP 367 352 } … … 535 520 { 536 521 #ifdef G4DEBUG_INTERFACES_BASIC 537 printf("G4UIQt::AddTabWidget %d %d G4UIQt:%d fMyVSplitter:%d\n",sizeX, sizeY, this,fMyVSplitter);522 printf("G4UIQt::AddTabWidget %d %d\n",sizeX, sizeY); 538 523 #endif 539 524 if (!aWidget) {
Note: See TracChangeset
for help on using the changeset viewer.