Changeset 1243 for trunk/source/interfaces/basic/src/G4UIQt.cc
- Timestamp:
- Apr 21, 2010, 3:51:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/interfaces/basic/src/G4UIQt.cc
r1239 r1243 116 116 ,fTabWidget(NULL) 117 117 ,fCoutText("Output") 118 119 118 { 120 119 … … 249 248 fEmptyViewerTabLabel = new QLabel(" If you want to have a Viewer, please use /vis/open commands. "); 250 249 250 // Only at creation. Will be set visible when sessionStart(); 251 fTabWidget->setVisible(false); 252 fEmptyViewerTabLabel->setVisible(false); 253 251 254 fMyVSplitter->addWidget(fToolBox); 252 255 fMyVSplitter->addWidget(fEmptyViewerTabLabel); … … 300 303 connect(fCommandArea, SIGNAL(returnPressed()), SLOT(CommandEnteredCallback())); 301 304 connect(fTabWidget, SIGNAL(tabCloseRequested(int)), this, SLOT(TabCloseCallback(int))); 302 // connect(fTabWidget, SIGNAL(currentChanged(int)), this, SLOT(CurrentChangedCallback(int)));303 305 connect(fTabWidget, SIGNAL(currentChanged ( int ) ), SLOT(UpdateTabWidget(int))); 304 306 if(UI!=NULL) UI->SetCoutDestination(this); // TO KEEP … … 517 519 ) 518 520 { 519 520 521 #ifdef G4DEBUG_INTERFACES_BASIC 521 522 printf("G4UIQt::AddTabWidget %d %d\n",sizeX, sizeY); 522 523 #endif 523 if (!aWidget) return false; 524 524 if (!aWidget) { 525 return false; 526 } 527 525 528 // Remove QLabel 526 529 if ( fMyVSplitter->indexOf(fEmptyViewerTabLabel) != -1) { … … 605 608 // // #endif 606 609 610 fTabWidget->setVisible(true); 611 607 612 return true; 608 613 } … … 623 628 624 629 fTabWidget->setCurrentIndex(tabNumber); 630 631 // Send this signal to unblock graphic updates ! 632 fTabWidget->setVisible(true); 633 634 // This will send a paintEvent to OGL Viewers 625 635 fTabWidget->setTabSelected(); 626 636 … … 657 667 exitSession = false; 658 668 669 fTabWidget->setVisible(true); 670 fEmptyViewerTabLabel->setVisible(true); 671 659 672 #if QT_VERSION >= 0x040000 660 673 #if QT_VERSION >= 0x040200 … … 666 679 fMainWindow->show(); 667 680 #endif 681 682 QCoreApplication::sendPostedEvents () ; 668 683 669 684 #ifdef G4DEBUG_INTERFACES_BASIC
Note: See TracChangeset
for help on using the changeset viewer.