Changeset View
Changeset View
Standalone View
Standalone View
src/Gui/SettingsDialog/SettingsDialog.cpp
Show All 15 Lines | |||||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | * Boston, MA 02110-1301, USA. | 17 | * Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "SettingsDialog.h" | 20 | #include "SettingsDialog.h" | ||
21 | 21 | | |||
22 | #include "GeneralOptionsPage.h" | 22 | #include "GeneralOptionsPage.h" | ||
23 | #include "SaveOptionsPage.h" | 23 | #include "SaveOptionsPage.h" | ||
24 | #include "BackendOptionsPage.h" | ||||
24 | #include "ShortcutsOptionsPage.h" | 25 | #include "ShortcutsOptionsPage.h" | ||
25 | 26 | | |||
26 | #include <KLocalizedString> | 27 | #include <KLocalizedString> | ||
27 | #include <KShortcutWidget> | 28 | #include <KShortcutWidget> | ||
28 | 29 | | |||
29 | #include <QIcon> | 30 | #include <QIcon> | ||
30 | #include <QMessageBox> | 31 | #include <QMessageBox> | ||
31 | 32 | | |||
Show All 19 Lines | 47 | { | |||
51 | mPages.insert(generalOptions); | 52 | mPages.insert(generalOptions); | ||
52 | 53 | | |||
53 | KPageWidgetItem *saveOptions = new KPageWidgetItem(new SaveOptionsPage(this), i18n("Save")); | 54 | KPageWidgetItem *saveOptions = new KPageWidgetItem(new SaveOptionsPage(this), i18n("Save")); | ||
54 | saveOptions->setHeader(i18n("Save")); | 55 | saveOptions->setHeader(i18n("Save")); | ||
55 | saveOptions->setIcon(QIcon::fromTheme(QStringLiteral("document-save"))); | 56 | saveOptions->setIcon(QIcon::fromTheme(QStringLiteral("document-save"))); | ||
56 | addPage(saveOptions); | 57 | addPage(saveOptions); | ||
57 | mPages.insert(saveOptions); | 58 | mPages.insert(saveOptions); | ||
58 | 59 | | |||
60 | KPageWidgetItem *backendOptions = new KPageWidgetItem(new BackendOptionsPage(this), i18n("Backend")); | ||||
61 | backendOptions->setHeader(i18n("Backend")); | ||||
62 | backendOptions->setIcon(QIcon::fromTheme(QStringLiteral("backend"))); | ||||
63 | addPage(backendOptions); | ||||
64 | mPages.insert(backendOptions); | ||||
65 | | ||||
59 | KPageWidgetItem *shortcutOptions = new KPageWidgetItem(new ShortcutsOptionsPage(this), i18n("Shortcuts")); | 66 | KPageWidgetItem *shortcutOptions = new KPageWidgetItem(new ShortcutsOptionsPage(this), i18n("Shortcuts")); | ||
60 | shortcutOptions->setHeader(i18n("Shortcuts")); | 67 | shortcutOptions->setHeader(i18n("Shortcuts")); | ||
61 | shortcutOptions->setIcon(QIcon::fromTheme(QStringLiteral("preferences-desktop-keyboard"))); | 68 | shortcutOptions->setIcon(QIcon::fromTheme(QStringLiteral("preferences-desktop-keyboard"))); | ||
62 | addPage(shortcutOptions); | 69 | addPage(shortcutOptions); | ||
63 | mPages.insert(shortcutOptions); | 70 | mPages.insert(shortcutOptions); | ||
64 | 71 | | |||
65 | connect(this, &SettingsDialog::currentPageChanged, this, &SettingsDialog::onPageChanged); | 72 | connect(this, &SettingsDialog::currentPageChanged, this, &SettingsDialog::onPageChanged); | ||
66 | } | 73 | } | ||
Show All 29 Lines |