Changeset View
Changeset View
Standalone View
Standalone View
src/settings/general/confirmationssettingspage.cpp
Show All 14 Lines | |||||
15 | * along with this program; if not, write to the * | 15 | * along with this program; if not, write to the * | ||
16 | * Free Software Foundation, Inc., * | 16 | * Free Software Foundation, Inc., * | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * | ||
18 | ***************************************************************************/ | 18 | ***************************************************************************/ | ||
19 | 19 | | |||
20 | #include "confirmationssettingspage.h" | 20 | #include "confirmationssettingspage.h" | ||
21 | 21 | | |||
22 | #include "dolphin_generalsettings.h" | 22 | #include "dolphin_generalsettings.h" | ||
23 | #include "global.h" | ||||
23 | 24 | | |||
24 | #include <KLocalizedString> | 25 | #include <KLocalizedString> | ||
25 | 26 | | |||
26 | #include <QCheckBox> | 27 | #include <QCheckBox> | ||
27 | #include <QLabel> | 28 | #include <QLabel> | ||
28 | #include <QVBoxLayout> | 29 | #include <QVBoxLayout> | ||
29 | 30 | | |||
30 | namespace { | 31 | namespace { | ||
Show All 19 Lines | 50 | m_confirmMoveToTrash = new QCheckBox(i18nc("@option:check Ask for confirmation when", | |||
50 | "Moving files or folders to trash"), this); | 51 | "Moving files or folders to trash"), this); | ||
51 | m_confirmEmptyTrash = new QCheckBox(i18nc("@option:check Ask for confirmation when", | 52 | m_confirmEmptyTrash = new QCheckBox(i18nc("@option:check Ask for confirmation when", | ||
52 | "Emptying trash"), this); | 53 | "Emptying trash"), this); | ||
53 | m_confirmDelete = new QCheckBox(i18nc("@option:check Ask for confirmation when", | 54 | m_confirmDelete = new QCheckBox(i18nc("@option:check Ask for confirmation when", | ||
54 | "Deleting files or folders"), this); | 55 | "Deleting files or folders"), this); | ||
55 | m_confirmScriptExecution = new QCheckBox(i18nc("@option:check Ask for confirmation when", | 56 | m_confirmScriptExecution = new QCheckBox(i18nc("@option:check Ask for confirmation when", | ||
56 | "Executing scripts or desktop files"), this); | 57 | "Executing scripts or desktop files"), this); | ||
57 | 58 | | |||
58 | QLabel* confirmLabelDolphin = new QLabel(i18nc("@title:group", "Ask for confirmation when:"), this); | 59 | QLabel* confirmLabelDolphin = new QLabel(i18nc("@title:group", "Ask for confirmation in Dolphin when:"), this); | ||
59 | confirmLabelDolphin->setWordWrap(true); | 60 | confirmLabelDolphin->setWordWrap(true); | ||
60 | 61 | | |||
61 | m_confirmClosingMultipleTabs = new QCheckBox(i18nc("@option:check Ask for confirmation when", | 62 | m_confirmClosingMultipleTabs = new QCheckBox(i18nc("@option:check Ask for confirmation in Dolphin when", | ||
62 | "Closing Dolphin windows with multiple tabs"), this); | 63 | "Closing windows with multiple tabs"), this); | ||
63 | 64 | | |||
64 | topLayout->addWidget(confirmLabelKde); | 65 | topLayout->addWidget(confirmLabelKde); | ||
65 | topLayout->addWidget(m_confirmMoveToTrash); | 66 | topLayout->addWidget(m_confirmMoveToTrash); | ||
66 | topLayout->addWidget(m_confirmEmptyTrash); | 67 | topLayout->addWidget(m_confirmEmptyTrash); | ||
67 | topLayout->addWidget(m_confirmDelete); | 68 | topLayout->addWidget(m_confirmDelete); | ||
68 | topLayout->addWidget(m_confirmScriptExecution); | 69 | topLayout->addWidget(m_confirmScriptExecution); | ||
70 | topLayout->addSpacing(Dolphin::VERTICAL_SPACER_HEIGHT); | ||||
69 | topLayout->addWidget(confirmLabelDolphin); | 71 | topLayout->addWidget(confirmLabelDolphin); | ||
70 | topLayout->addWidget(m_confirmClosingMultipleTabs); | 72 | topLayout->addWidget(m_confirmClosingMultipleTabs); | ||
71 | topLayout->addStretch(); | 73 | topLayout->addStretch(); | ||
72 | 74 | | |||
73 | loadSettings(); | 75 | loadSettings(); | ||
74 | 76 | | |||
75 | connect(m_confirmMoveToTrash, &QCheckBox::toggled, this, &ConfirmationsSettingsPage::changed); | 77 | connect(m_confirmMoveToTrash, &QCheckBox::toggled, this, &ConfirmationsSettingsPage::changed); | ||
76 | connect(m_confirmEmptyTrash, &QCheckBox::toggled, this, &ConfirmationsSettingsPage::changed); | 78 | connect(m_confirmEmptyTrash, &QCheckBox::toggled, this, &ConfirmationsSettingsPage::changed); | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |