diff options
| author | Peter Penz <[email protected]> | 2012-04-08 23:15:32 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-04-08 23:18:20 +0200 |
| commit | e0ac8b61fb907ac19f9bebf01cb5be17d4c88ba8 (patch) | |
| tree | 3774c1753847d346879590c9339d9459e2e8863c /src/settings/general/previewssettingspage.cpp | |
| parent | 05082aed16cdf7e511d9c97d0cf07e270af493e5 (diff) | |
Layout improvements for settings
- Handle 'Context Menu' settings as part of the services
- Handle 'Version Control' settings as part of the services
- Move the confirmations-settings into own tab
- Use combobox for view-property settings
- A lot of minor spacing cleanups
Diffstat (limited to 'src/settings/general/previewssettingspage.cpp')
| -rw-r--r-- | src/settings/general/previewssettingspage.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/settings/general/previewssettingspage.cpp b/src/settings/general/previewssettingspage.cpp index 4df3fc378..c76f4ca24 100644 --- a/src/settings/general/previewssettingspage.cpp +++ b/src/settings/general/previewssettingspage.cpp @@ -59,11 +59,8 @@ PreviewsSettingsPage::PreviewsSettingsPage(QWidget* parent) : m_remoteFileSizeBox(0) { QVBoxLayout* topLayout = new QVBoxLayout(this); - topLayout->setSpacing(KDialog::spacingHint()); - topLayout->setMargin(KDialog::marginHint()); - // Create group box "Show previews for:" - QGroupBox* listBox = new QGroupBox(i18nc("@title:group", "Show previews for"), this); + QLabel* showPreviewsLabel = new QLabel(i18nc("@title:group", "Show previews for:"), this); m_listView = new QListView(this); @@ -80,11 +77,6 @@ PreviewsSettingsPage::PreviewsSettingsPage(QWidget* parent) : m_listView->setItemDelegate(delegate); m_listView->setVerticalScrollMode(QListView::ScrollPerPixel); - QVBoxLayout* listBoxLayout = new QVBoxLayout(listBox); - listBoxLayout->setSpacing(KDialog::spacingHint()); - listBoxLayout->setMargin(KDialog::marginHint()); - listBoxLayout->addWidget(m_listView); - QLabel* remoteFileSizeLabel = new QLabel(i18nc("@label", "Skip previews for remote files above:"), this); m_remoteFileSizeBox = new KIntSpinBox(this); @@ -96,7 +88,9 @@ PreviewsSettingsPage::PreviewsSettingsPage(QWidget* parent) : fileSizeBoxLayout->addWidget(remoteFileSizeLabel, 0, Qt::AlignRight); fileSizeBoxLayout->addWidget(m_remoteFileSizeBox); - topLayout->addWidget(listBox); + topLayout->addSpacing(KDialog::spacingHint()); + topLayout->addWidget(showPreviewsLabel); + topLayout->addWidget(m_listView); topLayout->addLayout(fileSizeBoxLayout); loadSettings(); |
