Changeset 1335 for trunk/source/interfaces/basic/src
- Timestamp:
- Sep 28, 2010, 4:03:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/interfaces/basic/src/G4UIQt.cc
r1329 r1335 32 32 #ifdef G4UI_BUILD_QT_SESSION 33 33 34 //#define QT_CONNECT_TEST 1 35 34 36 #include "G4Types.hh" 35 37 … … 506 508 ) 507 509 { 510 #ifdef QT_CONNECT_TEST 508 511 bool shouldConnect = false; 512 #endif 509 513 510 514 #ifdef G4DEBUG_INTERFACES_BASIC … … 537 541 fTabWidget->setSizePolicy(policy); 538 542 543 #ifdef QT_CONNECT_TEST 539 544 shouldConnect = true; 545 #else 546 #if QT_VERSION >= 0x040500 547 connect(fTabWidget, SIGNAL(tabCloseRequested(int)), this, SLOT(TabCloseCallback(int))); 548 #endif 549 connect(fTabWidget, SIGNAL(currentChanged ( int ) ), SLOT(UpdateTabWidget(int))); 550 #endif 551 540 552 } 541 553 … … 648 660 printf("G4UIQt::AddTabWidget -------\n"); 649 661 #endif 662 #ifdef QT_CONNECT_TEST 650 663 if (shouldConnect) { 651 664 #if QT_VERSION >= 0x040500 … … 654 667 connect(fTabWidget, SIGNAL(currentChanged ( int ) ), SLOT(UpdateTabWidget(int))); 655 668 } 669 #endif 656 670 return true; 657 671 }
Note: See TracChangeset
for help on using the changeset viewer.