Changeset 635 for trunk/geant4/interfaces
- Timestamp:
- Dec 4, 2007, 6:46:23 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/basic/src/G4UIQt.cc
r633 r635 132 132 // Set layouts 133 133 134 #if QT_VERSION < 0x040000135 136 134 QWidget* topWidget = new QWidget(splitter); 137 135 QWidget* bottomWidget = new QWidget(splitter); … … 139 137 QVBoxLayout *layoutTop = new QVBoxLayout(topWidget); 140 138 QVBoxLayout *layoutBottom = new QVBoxLayout(bottomWidget); 141 #else142 QWidget* topWidget = new QWidget();143 QWidget* bottomWidget = new QWidget();144 145 QVBoxLayout *layoutTop = new QVBoxLayout;146 QVBoxLayout *layoutBottom = new QVBoxLayout;147 #endif148 139 149 140 // fill them … … 163 154 164 155 #if QT_VERSION < 0x040000 156 165 157 fCommandHistoryArea = new QListView(bottomWidget); 166 167 158 fCommandHistoryArea->setSorting (-1, FALSE); 168 159 fCommandHistoryArea->setSelectionMode(QListView::Single); … … 546 537 #if QT_VERSION < 0x040000 547 538 fHelpDialog = new QDialog(0,0,FALSE,Qt::WStyle_Title | Qt::WStyle_SysMenu | Qt::WStyle_MinMax ); 539 #else 540 fHelpDialog = new QDialog(0,Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint); 541 #endif 548 542 QVBoxLayout *vLayout = new QVBoxLayout(fHelpDialog); 549 #else550 QVBoxLayout *vLayout = new QVBoxLayout();551 fHelpDialog = new QDialog(0,Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint);552 #endif553 543 QSplitter *splitter = new QSplitter(Qt::Horizontal,fHelpDialog); 554 544 QPushButton *exitButton = new QPushButton("Exit",fHelpDialog);
Note: See TracChangeset
for help on using the changeset viewer.