Ignore:
Timestamp:
Sep 28, 2010, 4:03:23 PM (14 years ago)
Author:
garnier
Message:

some changes to check

File:
1 edited

Legend:

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

    r1329 r1335  
    3232#ifdef G4UI_BUILD_QT_SESSION
    3333
     34//#define QT_CONNECT_TEST 1
     35
    3436#include "G4Types.hh"
    3537
     
    506508)
    507509{
     510#ifdef QT_CONNECT_TEST
    508511  bool shouldConnect = false;
     512#endif
    509513
    510514#ifdef G4DEBUG_INTERFACES_BASIC
     
    537541    fTabWidget->setSizePolicy(policy);
    538542   
     543#ifdef QT_CONNECT_TEST
    539544    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
    540552  }
    541553
     
    648660  printf("G4UIQt::AddTabWidget -------\n");
    649661#endif
     662#ifdef QT_CONNECT_TEST
    650663  if (shouldConnect) {
    651664#if QT_VERSION >= 0x040500
     
    654667    connect(fTabWidget, SIGNAL(currentChanged ( int ) ), SLOT(UpdateTabWidget(int)));
    655668  }
     669#endif
    656670  return true;
    657671}
Note: See TracChangeset for help on using the changeset viewer.