Changeset View
Changeset View
Standalone View
Standalone View
src/settings/navigation/navigationsettingspage.cpp
Show All 18 Lines | |||||
19 | 19 | | |||
20 | #include "navigationsettingspage.h" | 20 | #include "navigationsettingspage.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 | NavigationSettingsPage::NavigationSettingsPage(QWidget* parent) : | 29 | NavigationSettingsPage::NavigationSettingsPage(QWidget* parent) : | ||
30 | SettingsPageBase(parent), | 30 | SettingsPageBase(parent), | ||
31 | m_openArchivesAsFolder(nullptr), | 31 | m_openArchivesAsFolder(nullptr), | ||
32 | m_autoExpandFolders(nullptr) | 32 | m_autoExpandFolders(nullptr) | ||
33 | { | 33 | { | ||
34 | QVBoxLayout* topLayout = new QVBoxLayout(this); | 34 | QFormLayout* topLayout = new QFormLayout(this); | ||
35 | QWidget* vBox = new QWidget(this); | | |||
36 | QVBoxLayout *vBoxLayout = new QVBoxLayout(vBox); | | |||
37 | vBoxLayout->setMargin(0); | | |||
38 | vBoxLayout->setAlignment(Qt::AlignTop); | | |||
39 | 35 | | |||
40 | m_openArchivesAsFolder = new QCheckBox(i18nc("@option:check", "Open archives as folder"), vBox); | 36 | m_openArchivesAsFolder = new QCheckBox(i18nc("@option:check", "Open in Dolphin")); | ||
41 | vBoxLayout->addWidget(m_openArchivesAsFolder); | 37 | topLayout->addRow(i18n("Archives:"), m_openArchivesAsFolder); | ||
42 | 38 | | |||
43 | m_autoExpandFolders = new QCheckBox(i18nc("option:check", "Open folders during drag operations"), vBox); | 39 | m_autoExpandFolders = new QCheckBox(i18nc("option:check", "Open folders on hover")); | ||
44 | vBoxLayout->addWidget(m_autoExpandFolders); | 40 | topLayout->addRow(i18n("Drag-and-drop:"), m_autoExpandFolders); | ||
45 | | ||||
46 | topLayout->addWidget(vBox); | | |||
47 | 41 | | |||
48 | loadSettings(); | 42 | loadSettings(); | ||
49 | 43 | | |||
50 | connect(m_openArchivesAsFolder, &QCheckBox::toggled, this, &NavigationSettingsPage::changed); | 44 | connect(m_openArchivesAsFolder, &QCheckBox::toggled, this, &NavigationSettingsPage::changed); | ||
51 | connect(m_autoExpandFolders, &QCheckBox::toggled, this, &NavigationSettingsPage::changed); | 45 | connect(m_autoExpandFolders, &QCheckBox::toggled, this, &NavigationSettingsPage::changed); | ||
52 | } | 46 | } | ||
53 | 47 | | |||
54 | NavigationSettingsPage::~NavigationSettingsPage() | 48 | NavigationSettingsPage::~NavigationSettingsPage() | ||
Show All 26 Lines |