Changeset View
Changeset View
Standalone View
Standalone View
src/MainWindow.cpp
Show First 20 Lines • Show All 722 Lines • ▼ Show 20 Line(s) | |||||
723 | 723 | | |||
724 | void MainWindow::showSettingsDialog(const bool showProfilePage) | 724 | void MainWindow::showSettingsDialog(const bool showProfilePage) | ||
725 | { | 725 | { | ||
726 | if (KConfigDialog::showDialog(QStringLiteral("settings"))) { | 726 | if (KConfigDialog::showDialog(QStringLiteral("settings"))) { | ||
727 | return; | 727 | return; | ||
728 | } | 728 | } | ||
729 | 729 | | |||
730 | KConfigDialog *settingsDialog = new KConfigDialog(this, QStringLiteral("settings"), KonsoleSettings::self()); | 730 | KConfigDialog *settingsDialog = new KConfigDialog(this, QStringLiteral("settings"), KonsoleSettings::self()); | ||
731 | settingsDialog->setFaceType(KPageDialog::Tabbed); | 731 | settingsDialog->setFaceType(KPageDialog::List); | ||
732 | 732 | | |||
733 | auto generalSettings = new GeneralSettings(settingsDialog); | 733 | auto generalSettings = new GeneralSettings(settingsDialog); | ||
734 | settingsDialog->addPage(generalSettings, | 734 | settingsDialog->addPage(generalSettings, | ||
735 | i18nc("@title Preferences page name", "General"), | 735 | i18nc("@title Preferences page name", "General"), | ||
736 | QStringLiteral("utilities-terminal")); | 736 | QStringLiteral("utilities-terminal")); | ||
737 | 737 | | |||
738 | auto profileSettings = new ProfileSettings(settingsDialog); | 738 | auto profileSettings = new ProfileSettings(settingsDialog); | ||
739 | KPageWidgetItem *profilePage = settingsDialog->addPage(profileSettings, | 739 | KPageWidgetItem *profilePage = settingsDialog->addPage(profileSettings, | ||
▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines |