┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings/trash
diff options
context:
space:
mode:
authorNathaniel Graham <[email protected]>2018-07-05 21:24:27 -0600
committerNathaniel Graham <[email protected]>2018-07-05 21:24:49 -0600
commit02c94b228a3ad9a5d39e850b9708f1c52c713c57 (patch)
tree2844a36c99cb059208d85c5147dfa6a7be1496f8 /src/settings/trash
parent85d7a8a2f60ffac614cc96120181cd8f1c4269b0 (diff)
Modernize Settings window
Summary: This patch modernizes the appearance of Dolphin's configuration window by following the KDE HIG as much as possible and following design cues from Plasma and System Settings. Test Plan: Tested all settings to make sure they still work; they do. Startup page, before: {F5825313} Startup page, after: {F5918574} View page (Icons), before: {F5825319} View page (Icons) after: {F5918575} View page (Compact), before: {F5825321} View page (Compact) after: {F5918700} View page (Detailed), before: {F5825323} View page: (Detailed), after: {F5918701} Navigation page: no change Trash page, before: {F5858748} Trash page, after: {F5866656} (Provided by {D12986}) General page (behavior), before: {F5825316} General page (behavior) after: {F5918572} General page (confirmations), before: {F5866885} General page (confirmations), after: {F5918702} General page (status bar): no change Reviewers: #dolphin, #vdg, broulik, elvisangelaccio Reviewed By: #dolphin, elvisangelaccio Subscribers: fabianr, cfeck, medhefgo, zzag, rkflx, kfm-devel, elvisangelaccio, abetts Tags: #dolphin Differential Revision: https://phabricator.kde.org/D12571
Diffstat (limited to 'src/settings/trash')
-rw-r--r--src/settings/trash/trashsettingspage.cpp17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/settings/trash/trashsettingspage.cpp b/src/settings/trash/trashsettingspage.cpp
index 4c71aa3ec..a9b8c734c 100644
--- a/src/settings/trash/trashsettingspage.cpp
+++ b/src/settings/trash/trashsettingspage.cpp
@@ -21,26 +21,15 @@
#include <KCModuleProxy>
-#include <QVBoxLayout>
+#include <QFormLayout>
TrashSettingsPage::TrashSettingsPage(QWidget* parent) :
SettingsPageBase(parent)
{
- QVBoxLayout* topLayout = new QVBoxLayout(this);
- QWidget* vBox = new QWidget(this);
- QVBoxLayout *vBoxVBoxLayout = new QVBoxLayout(vBox);
- vBoxVBoxLayout->setMargin(0);
+ QFormLayout* topLayout = new QFormLayout(this);
m_proxy = new KCModuleProxy(QStringLiteral("kcmtrash"));
- topLayout->addWidget(m_proxy);
-
- // Add a dummy widget with no restriction regarding
- // a vertical resizing. This assures that the dialog layout
- // is not stretched vertically.
- QWidget *w = new QWidget(vBox);
- vBoxVBoxLayout->addWidget(w);
-
- topLayout->addWidget(vBox);
+ topLayout->addRow(m_proxy);
loadSettings();