Changeset 1261 for trunk/source
- Timestamp:
- May 26, 2010, 2:48:18 PM (14 years ago)
- Location:
- trunk/source/interfaces
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/interfaces/History
r1255 r1261 18 18 ---------------------------------------------------------- 19 19 20 26 May, L. Garnier 21 - G4UIQt: Fix some compil errors with qt3 22 20 23 20 May, L. Garnier 21 24 Co-working tag : intercoms-V09-03-01 -
trunk/source/interfaces/basic/src/G4UIQt.cc
r1255 r1261 60 60 #include <qtabwidget.h> 61 61 #include <qtabbar.h> 62 #include <QResizeEvent>63 62 #include <qstringlist.h> 64 63 … … 68 67 #include <qlistwidget.h> 69 68 #include <qtreewidget.h> 69 #include <QResizeEvent> 70 70 #else 71 71 #include <qaction.h> … … 164 164 #if QT_VERSION < 0x040000 165 165 fMyVSplitter = new QSplitter(Qt::Horizontal,fMainWindow); 166 fToolBox = new QToolBox( Qt::Horizontal,fMyVSplitter);166 fToolBox = new QToolBox(fMyVSplitter); 167 167 #else 168 168 fMyVSplitter = new QSplitter(Qt::Horizontal,fMainWindow); 169 fToolBox = new QToolBox( mainWidget);169 fToolBox = new QToolBox(); 170 170 #endif 171 171 … … 244 244 245 245 QSizePolicy policy = fTabWidget->sizePolicy(); 246 #if QT_VERSION < 0x040000 247 policy.setHorStretch(1); 248 policy.setVerStretch(1); 249 #else 246 250 policy.setHorizontalStretch(1); 247 251 policy.setVerticalStretch(1); 252 #endif 248 253 fTabWidget->setSizePolicy(policy); 249 254 250 fEmptyViewerTabLabel = new QLabel( " If you want to have a Viewer, please use /vis/open commands. ");255 fEmptyViewerTabLabel = new QLabel(QString(" If you want to have a Viewer, please use /vis/open commands. ")); 251 256 252 257 // Only at creation. Will be set visible when sessionStart(); 258 #if QT_VERSION >= 0x040000 259 #if QT_VERSION >= 0x040200 253 260 fTabWidget->setVisible(false); 254 261 fEmptyViewerTabLabel->setVisible(false); 255 262 #else 263 fTabWidget->hide(); 264 fEmptyViewerTabLabel->hide(); 265 #endif 266 #else 267 fTabWidget->hide(); 268 fEmptyViewerTabLabel->hide(); 269 #endif 270 271 272 // fMyVSplitter->addWidget(fTabWidget); 273 274 // unset parent fot TabWidget 275 #if QT_VERSION < 0x040000 276 fTabWidget->reparent(0,0,QPoint(0,0)); 277 #else 256 278 fMyVSplitter->addWidget(fToolBox); 257 279 fMyVSplitter->addWidget(fEmptyViewerTabLabel); 258 // fMyVSplitter->addWidget(fTabWidget);259 260 // unset parent fot TabWidget261 #if QT_VERSION < 0x040000262 fTabWidget->reparent(0,0,QPoint(0,0));263 #else264 280 fTabWidget->setParent(0); 265 281 #endif
Note: See TracChangeset
for help on using the changeset viewer.