diff options
| author | Montel Laurent <[email protected]> | 2014-10-27 22:30:02 +0100 |
|---|---|---|
| committer | Montel Laurent <[email protected]> | 2014-10-27 22:30:02 +0100 |
| commit | a76cb4c67f8b1f30f29482228fecca89a9c1cb6f (patch) | |
| tree | 10bf105a589033eb87c14340e64203ace1013e1f /src/settings/trash/trashsettingspage.cpp | |
| parent | 5ed011357c42170805a4e20ec6526e79f8a0ea39 (diff) | |
Port to QDebug*. KVBox--
Diffstat (limited to 'src/settings/trash/trashsettingspage.cpp')
| -rw-r--r-- | src/settings/trash/trashsettingspage.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/settings/trash/trashsettingspage.cpp b/src/settings/trash/trashsettingspage.cpp index bd01d56b5..aa4b5a22a 100644 --- a/src/settings/trash/trashsettingspage.cpp +++ b/src/settings/trash/trashsettingspage.cpp @@ -21,7 +21,7 @@ #include <KCModuleProxy> #include <KDialog> -#include <KVBox> +#include <QVBoxLayout> #include <QVBoxLayout> @@ -31,8 +31,10 @@ TrashSettingsPage::TrashSettingsPage(QWidget* 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); + vBoxVBoxLayout->setSpacing(spacing); m_proxy = new KCModuleProxy("kcmtrash"); topLayout->addWidget(m_proxy); @@ -40,7 +42,9 @@ 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(); |
