--Usability + 1

Having a single left-aligned element makes things look lopsided.

svn path=/trunk/KDE/kdebase/workspace/; revision=872584
This commit is contained in:
Lucas Murray 2008-10-17 14:16:28 +00:00
parent 7597ce484e
commit bdd1da759f

View file

@ -84,12 +84,12 @@ KDesktopConfig::KDesktopConfig(QWidget *parent, const QVariantList &)
QString wtstr = i18n( "Here you can set how many virtual desktops you want on your KDE desktop. Move the slider to change the value." ); QString wtstr = i18n( "Here you can set how many virtual desktops you want on your KDE desktop. Move the slider to change the value." );
label->setWhatsThis( wtstr ); label->setWhatsThis( wtstr );
_numInput->setWhatsThis( wtstr ); _numInput->setWhatsThis( wtstr );
QSpacerItem *horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); //QSpacerItem *horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
lay->addWidget(label); lay->addWidget(label);
lay->addWidget(_numInput); lay->addWidget(_numInput);
lay->addItem(horizontalSpacer); //lay->addItem(horizontalSpacer);
//lay->setStretchFactor( _numInput, 2 ); lay->setStretchFactor( _numInput, 2 );
layout->addLayout(lay); layout->addLayout(lay);