Changeset 1264 for trunk


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

test qt3

File:
1 edited

Legend:

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

    r1263 r1264  
    546546
    547547  // Remove QLabel
    548 #if QT_VERSION < 0x040000
    549   // L.Garnier 26/05/2010 : not exactly the same in qt4. Could cause some
     548
     549  // L.Garnier 26/05/2010 : not exactly the same in qt3. Could cause some
    550550  // troubles
    551   if ( fMyVSplitter->idAfter(fEmptyViewerTabLabel) != -1) {
    552 #else
     551#if QT_VERSION >= 0x040000
    553552  if ( fMyVSplitter->indexOf(fEmptyViewerTabLabel) != -1) {
    554553#endif
     554
    555555#if QT_VERSION < 0x040000
    556556    fEmptyViewerTabLabel->reparent(0,0,QPoint(0,0)); 
     557    fMyVSplitter->addWidget(fTabWidget);
    557558#else
    558559    fEmptyViewerTabLabel->setParent(0);
    559560    fMyVSplitter->addWidget(fTabWidget);
    560561#endif
     562
    561563#if QT_VERSION < 0x040000
    562564    aWidget->reparent(fTabWidget,0,QPoint(0,0)); 
     
    564566    aWidget->setParent(fTabWidget);
    565567#endif
    566   }
    567 
     568#if QT_VERSION >= 0x040000
     569  }
     570#endif
    568571
    569572
Note: See TracChangeset for help on using the changeset viewer.