Fix config dialog of Aurorae decorations
Install the layout on the dialog not on the KCM.
This commit is contained in:
parent
b901928801
commit
b8f9fb254f
1 changed files with 3 additions and 3 deletions
|
@ -370,12 +370,12 @@ void KWinDecorationModule::slotConfigureDecoration()
|
||||||
dlg->setWindowTitle(i18n("Decoration Options"));
|
dlg->setWindowTitle(i18n("Decoration Options"));
|
||||||
KWinAuroraeConfigForm *form = new KWinAuroraeConfigForm(dlg);
|
KWinAuroraeConfigForm *form = new KWinAuroraeConfigForm(dlg);
|
||||||
form->enableNoSideBorderSupport(index.data(DecorationModel::TypeRole).toInt() == DecorationModelData::QmlDecoration);
|
form->enableNoSideBorderSupport(index.data(DecorationModel::TypeRole).toInt() == DecorationModelData::QmlDecoration);
|
||||||
setLayout(new QVBoxLayout);
|
dlg->setLayout(new QVBoxLayout);
|
||||||
QDialogButtonBox* buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, dlg.data());
|
QDialogButtonBox* buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, dlg.data());
|
||||||
connect(buttons, SIGNAL(accepted()), dlg, SLOT(accept()));
|
connect(buttons, SIGNAL(accepted()), dlg, SLOT(accept()));
|
||||||
connect(buttons, SIGNAL(rejected()), dlg, SLOT(reject()));
|
connect(buttons, SIGNAL(rejected()), dlg, SLOT(reject()));
|
||||||
layout()->addWidget(form);
|
dlg->layout()->addWidget(form);
|
||||||
layout()->addWidget(buttons);
|
dlg->layout()->addWidget(buttons);
|
||||||
|
|
||||||
form->borderSizesCombo->setCurrentIndex(index.data(DecorationModel::BorderSizeRole).toInt());
|
form->borderSizesCombo->setCurrentIndex(index.data(DecorationModel::BorderSizeRole).toInt());
|
||||||
form->buttonSizesCombo->setCurrentIndex(index.data(DecorationModel::ButtonSizeRole).toInt());
|
form->buttonSizesCombo->setCurrentIndex(index.data(DecorationModel::ButtonSizeRole).toInt());
|
||||||
|
|
Loading…
Reference in a new issue