Changeset 6458 for trunk/qt-gui

Show
Ignore:
Timestamp:
07/20/08 23:04:48 (4 months ago)
Author:
flynd
Message:

Add stretchable space on all option pages, not just some of them.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt-gui/src/optionsdlg.cpp

    r6381 r6458  
    931931  l->addWidget(boxFont); 
    932932 
     933  l->addStretch(1); 
     934 
    933935  return w; 
    934936} 
     
    10281030 
    10291031  QGroupBox *boxAcceptEvents = new QGroupBox(4, Vertical, tr("Accept Modes"), w); 
    1030   lay->addWidget(boxAcceptEvents, 1); 
     1032  lay->addWidget(boxAcceptEvents); 
    10311033 
    10321034  chkOEAway = new QCheckBox(tr("OnEvent in Away"), boxAcceptEvents); 
     
    10431045 
    10441046  slot_chkOnEventsToggled(chkOnEvents->isChecked()); 
     1047 
     1048  lay->addStretch(1); 
    10451049 
    10461050  return w; 
     
    15711575{ 
    15721576  QWidget* w = new QWidget(this); 
    1573   QBoxLayout* lay = new QHBoxLayout(w, 8, 4); 
     1577  QVBoxLayout* l = new QVBoxLayout(w, 8, 4); 
     1578  QBoxLayout* lay = new QHBoxLayout(); 
    15741579 
    15751580  QVBox* boxRight = new QVBox(w); 
     
    17051710  lay->activate(); 
    17061711 
     1712  l->addLayout(lay); 
     1713  l->addStretch(1); 
     1714 
    17071715  return w; 
    17081716}