Changeset 1268 for trunk


Ignore:
Timestamp:
May 26, 2010, 3:58:08 PM (14 years ago)
Author:
garnier
Message:

test qt3

File:
1 edited

Legend:

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

    r1267 r1268  
    20122012)
    20132013{
     2014#if QT_VERSION < 0x040000
     2015  if (commandPath.find("/") == 0) {
     2016    commandPath = commandPath.right(commandPath.length()-1);
     2017#else
    20142018  if (commandPath.indexOf("/") == 0) {
    2015 #if QT_VERSION < 0x040000
    2016     commandPath = commandPath.right(commandPath.length()-1);
    2017 #else
    20182019    commandPath = commandPath.right(commandPath.size()-1);
    20192020#endif
     
    20822083void G4UIQt::TabCloseCallback(int a){
    20832084#if QT_VERSION < 0x040000
    2084   QWidget* temp = fTabWidget->item(a);
    2085   fTabWidget->removeItem (a);
     2085  QWidget* temp = fTabWidget->page(a);
     2086  fTabWidget->removePage (a);
    20862087#else
    20872088  QWidget* temp = fTabWidget->widget(a);
     
    21062107
    21072108#if QT_VERSION < 0x040000
    2108   if (fToolBox->item(a) == fHelpTBWidget) {
     2109  if (fToolBox->page(a) == fHelpTBWidget) {
    21092110#else
    21102111  if (fToolBox->widget(a) == fHelpTBWidget) {
     
    21212122
    21222123#if QT_VERSION < 0x040000
    2123   if (currentItem()) {
     2124  if (currentPage()) {
    21242125#else
    21252126  if (currentWidget()) {
    21262127#endif
    21272128
    2128 #ifdef G4DEBUG_INTERFACES_BASIC
    2129     printf("G4QTabWidget::paintEvent repaint type : %d -- rect %d %d  region:%d %d page : %d %d  ________________________  i= %d\n", event->type(),event->rect().height(),event->rect().width(),event->region().boundingRect().width(),event->region().boundingRect().height(),currentWidget()->width(),currentWidget()->height(),currentIndex());
    2130 #endif
    21312129    if ( isTabSelected()) {
    21322130
    21332131#if QT_VERSION < 0x040000
    2134   QApplication::sendPostedEvents () ;
    2135 #else
    2136   QCoreApplication::sendPostedEvents () ;
     2132      QApplication::sendPostedEvents () ;
     2133#else
     2134      QCoreApplication::sendPostedEvents () ;
    21372135#endif
    21382136
Note: See TracChangeset for help on using the changeset viewer.