Ignore:
Timestamp:
Dec 4, 2007, 6:46:23 PM (17 years ago)
Author:
garnier
Message:

modif pour les formats d export

File:
1 edited

Legend:

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

    r633 r635  
    132132  // Set layouts
    133133
    134 #if QT_VERSION < 0x040000
    135 
    136134  QWidget* topWidget = new QWidget(splitter);
    137135  QWidget* bottomWidget = new QWidget(splitter);
     
    139137  QVBoxLayout *layoutTop = new QVBoxLayout(topWidget);
    140138  QVBoxLayout *layoutBottom = new QVBoxLayout(bottomWidget);
    141 #else
    142   QWidget* topWidget = new QWidget();
    143   QWidget* bottomWidget = new QWidget();
    144 
    145   QVBoxLayout *layoutTop = new QVBoxLayout;
    146   QVBoxLayout *layoutBottom = new QVBoxLayout;
    147 #endif
    148139
    149140  // fill them
     
    163154
    164155#if QT_VERSION < 0x040000
     156
    165157  fCommandHistoryArea = new QListView(bottomWidget);
    166 
    167158  fCommandHistoryArea->setSorting (-1, FALSE);
    168159  fCommandHistoryArea->setSelectionMode(QListView::Single);
     
    546537#if QT_VERSION < 0x040000
    547538    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
    548542    QVBoxLayout *vLayout = new QVBoxLayout(fHelpDialog);
    549 #else
    550     QVBoxLayout *vLayout = new QVBoxLayout();
    551     fHelpDialog = new QDialog(0,Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint);
    552 #endif
    553543    QSplitter *splitter = new QSplitter(Qt::Horizontal,fHelpDialog);
    554544    QPushButton *exitButton = new QPushButton("Exit",fHelpDialog);
Note: See TracChangeset for help on using the changeset viewer.