Changeset View
Changeset View
Standalone View
Standalone View
src/settings/general/statusbarsettingspage.cpp
Show All 18 Lines | |||||
19 | 19 | | |||
20 | #include "statusbarsettingspage.h" | 20 | #include "statusbarsettingspage.h" | ||
21 | 21 | | |||
22 | #include "dolphin_generalsettings.h" | 22 | #include "dolphin_generalsettings.h" | ||
23 | 23 | | |||
24 | #include <KLocalizedString> | 24 | #include <KLocalizedString> | ||
25 | 25 | | |||
26 | #include <QCheckBox> | 26 | #include <QCheckBox> | ||
27 | #include <QVBoxLayout> | 27 | #include <QFormLayout> | ||
28 | 28 | | |||
29 | StatusBarSettingsPage::StatusBarSettingsPage(QWidget* parent) : | 29 | StatusBarSettingsPage::StatusBarSettingsPage(QWidget* parent) : | ||
30 | SettingsPageBase(parent), | 30 | SettingsPageBase(parent), | ||
31 | m_showZoomSlider(nullptr), | 31 | m_showZoomSlider(nullptr), | ||
32 | m_showSpaceInfo(nullptr) | 32 | m_showSpaceInfo(nullptr) | ||
33 | { | 33 | { | ||
34 | m_showZoomSlider = new QCheckBox(i18nc("@option:check", "Show zoom slider"), this); | 34 | QFormLayout* topLayout = new QFormLayout(this); | ||
35 | m_showSpaceInfo = new QCheckBox(i18nc("@option:check", "Show space information"), this); | | |||
36 | 35 | | |||
37 | QVBoxLayout* topLayout = new QVBoxLayout(this); | 36 | | ||
38 | topLayout->addWidget(m_showZoomSlider); | 37 | m_showZoomSlider = new QCheckBox(i18nc("@option:check", "Zoom slider")); | ||
39 | topLayout->addWidget(m_showSpaceInfo); | 38 | topLayout->addRow(i18nc("Verb", "Show:"), m_showZoomSlider); | ||
40 | topLayout->addStretch(); | 39 | | ||
40 | m_showSpaceInfo = new QCheckBox(i18nc("@option:check", "Space information")); | ||||
41 | topLayout->addRow(QString(), m_showSpaceInfo); | ||||
41 | 42 | | |||
42 | loadSettings(); | 43 | loadSettings(); | ||
43 | 44 | | |||
44 | connect(m_showZoomSlider, &QCheckBox::toggled, this, &StatusBarSettingsPage::changed); | 45 | connect(m_showZoomSlider, &QCheckBox::toggled, this, &StatusBarSettingsPage::changed); | ||
45 | connect(m_showSpaceInfo, &QCheckBox::toggled, this, &StatusBarSettingsPage::changed); | 46 | connect(m_showSpaceInfo, &QCheckBox::toggled, this, &StatusBarSettingsPage::changed); | ||
46 | } | 47 | } | ||
47 | 48 | | |||
48 | StatusBarSettingsPage::~StatusBarSettingsPage() | 49 | StatusBarSettingsPage::~StatusBarSettingsPage() | ||
Show All 25 Lines |