diff --git a/kcmkwin/kwinoptions/main.cpp b/kcmkwin/kwinoptions/main.cpp index 58efa8e439..0fd08450ba 100644 --- a/kcmkwin/kwinoptions/main.cpp +++ b/kcmkwin/kwinoptions/main.cpp @@ -59,7 +59,7 @@ KWinOptions::KWinOptions(QWidget *parent, const char *name, const QStringList &) connect(mFocus, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); mActions = new KActionsConfig(mConfig, this, "KWin Actions"); - tab->addTab(mActions, i18n("Actions")); + tab->addTab(mActions, i18n("Actio&ns")); connect(mActions, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool))); mMoving = new KMovingConfig(mConfig, this, "KWin Moving"); diff --git a/kcmkwin/kwinoptions/windows.cpp b/kcmkwin/kwinoptions/windows.cpp index 7e59998985..23741e88c7 100644 --- a/kcmkwin/kwinoptions/windows.cpp +++ b/kcmkwin/kwinoptions/windows.cpp @@ -94,8 +94,7 @@ KFocusConfig::KFocusConfig (KConfig *_config, QWidget * parent, const char *name : QWidget (parent, name), config(_config) { QString wtstr; - QBoxLayout *lay = new QVBoxLayout (this, KDialog::marginHint(), - KDialog::spacingHint()); + QBoxLayout *lay = new QVBoxLayout (this, KDialog::marginHint(),KDialog::spacingHint()); //iTLabel = new QLabel(i18n(" Allowed overlap:\n" // "(% of desktop space)"), @@ -111,26 +110,24 @@ KFocusConfig::KFocusConfig (KConfig *_config, QWidget * parent, const char *name //lay->addWidget(plcBox); // focus policy - fcsBox = new QButtonGroup(i18n("Focus Policy"),this); - - QGridLayout *fLay = new QGridLayout(fcsBox,5,3, - KDialog::marginHint(), - KDialog::spacingHint()); - fLay->addRowSpacing(0,fontMetrics().lineSpacing()); - fLay->setColStretch(0,0); - fLay->setColStretch(1,1); - fLay->setColStretch(2,1); + fcsBox = new QButtonGroup(i18n("Focus"),this); + QBoxLayout *fLay = new QVBoxLayout(fcsBox, KDialog::marginHint(), KDialog::spacingHint()); + fLay->addSpacing(fontMetrics().lineSpacing()); + QBoxLayout *cLay = new QHBoxLayout(fLay); + QLabel *fLabel = new QLabel(i18n("&Policy:"), fcsBox); + cLay->addWidget(fLabel, 0); focusCombo = new QComboBox(false, fcsBox); focusCombo->insertItem(i18n("Click to Focus"), CLICK_TO_FOCUS); focusCombo->insertItem(i18n("Focus Follows Mouse"), FOCUS_FOLLOWS_MOUSE); focusCombo->insertItem(i18n("Focus Under Mouse"), FOCUS_UNDER_MOUSE); focusCombo->insertItem(i18n("Focus Strictly Under Mouse"), FOCUS_STRICTLY_UNDER_MOUSE); - fLay->addMultiCellWidget(focusCombo,1,1,0,1); + cLay->addWidget(focusCombo,1 ,Qt::AlignLeft); + fLabel->setBuddy(focusCombo); // FIXME, when more policies have been added to KWin - QWhatsThis::add( focusCombo, i18n("The focus policy is used to determine the active window, i.e." + wtstr = i18n("The focus policy is used to determine the active window, i.e." " the window you can work in.