Fix position of buttons in decoration config dialog

Add after the main item, not before.
This commit is contained in:
Martin Gräßlin 2014-02-21 12:08:31 +01:00
parent d2ae57832b
commit b901928801

View file

@ -85,7 +85,6 @@ KWinDecorationConfigDialog::KWinDecorationConfigDialog(QString deco, const QList
m_buttons->button(QDialogButtonBox::Reset)->setEnabled(false);
QVBoxLayout* layout = new QVBoxLayout;
layout->addWidget(m_ui);
layout->addWidget(m_buttons);
connect(m_buttons, SIGNAL(accepted()), SLOT(accept()));
connect(m_buttons, SIGNAL(rejected()), SLOT(reject()));
@ -111,6 +110,7 @@ KWinDecorationConfigDialog::KWinDecorationConfigDialog(QString deco, const QList
if (m_pluginConfigWidget) {
layout->addWidget(m_pluginConfigWidget);
}
layout->addWidget(m_buttons);
if (borderSizes.count() >= 2) {
foreach (const QVariant & borderSize, borderSizes) {