┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings/trash/trashsettingspage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/trash/trashsettingspage.cpp')
-rw-r--r--src/settings/trash/trashsettingspage.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/settings/trash/trashsettingspage.cpp b/src/settings/trash/trashsettingspage.cpp
index cd699856c..237a17987 100644
--- a/src/settings/trash/trashsettingspage.cpp
+++ b/src/settings/trash/trashsettingspage.cpp
@@ -20,19 +20,16 @@
#include "trashsettingspage.h"
#include <KCModuleProxy>
-#include <KDialog>
-#include <KVBox>
#include <QVBoxLayout>
TrashSettingsPage::TrashSettingsPage(QWidget* parent) :
SettingsPageBase(parent)
{
- const int spacing = KDialog::spacingHint();
-
QVBoxLayout* topLayout = new QVBoxLayout(this);
- KVBox* vBox = new KVBox(this);
- vBox->setSpacing(spacing);
+ QWidget* vBox = new QWidget(this);
+ QVBoxLayout *vBoxVBoxLayout = new QVBoxLayout(vBox);
+ vBoxVBoxLayout->setMargin(0);
m_proxy = new KCModuleProxy("kcmtrash");
topLayout->addWidget(m_proxy);
@@ -40,12 +37,14 @@ TrashSettingsPage::TrashSettingsPage(QWidget* parent) :
// Add a dummy widget with no restriction regarding
// a vertical resizing. This assures that the dialog layout
// is not stretched vertically.
- new QWidget(vBox);
+ QWidget *w = new QWidget(vBox);
+ vBoxVBoxLayout->addWidget(w);
+
topLayout->addWidget(vBox);
loadSettings();
- connect(m_proxy, SIGNAL(changed(bool)), this, SIGNAL(changed()));
+ connect(m_proxy, static_cast<void(KCModuleProxy::*)(bool)>(&KCModuleProxy::changed), this, &TrashSettingsPage::changed);
}
TrashSettingsPage::~TrashSettingsPage()
@@ -67,4 +66,3 @@ void TrashSettingsPage::loadSettings()
m_proxy->load();
}
-#include "trashsettingspage.moc"