From 1d4355f619ca8098d12f330741017e417a756083 Mon Sep 17 00:00:00 2001 From: Benedikt Thiemer Date: Fri, 15 Mar 2024 16:28:35 +0000 Subject: Add settings page for Panels For now this just includes the settings for the information panel. Prior to this commit the options for configuring the information panel were only exposed via right clicking the information panel. This was not discoverable enough. Our guidelines also state that much. See: https://community.kde.org/Get_Involved/Design/Frequently_Discussed_Topics#Context_menus_are_not_enough The settings page is missing the "Configure" button for the entries in the information panel, which can only be found in the context menu. This is because I thought it would be weird to move it to the settings page. (The "configure" button is used to select the entries for the information panel) BUG: 480243 FIXED-IN: 24.05 --- src/settings/interface/interfacesettingspage.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/settings/interface/interfacesettingspage.cpp') diff --git a/src/settings/interface/interfacesettingspage.cpp b/src/settings/interface/interfacesettingspage.cpp index 0159f822c..3f8e69ada 100644 --- a/src/settings/interface/interfacesettingspage.cpp +++ b/src/settings/interface/interfacesettingspage.cpp @@ -11,6 +11,10 @@ #include "previewssettingspage.h" #include "statusandlocationbarssettingspage.h" +#if HAVE_BALOO +#include "panelsettingspage.h" +#endif + #include #include @@ -41,6 +45,13 @@ InterfaceSettingsPage::InterfaceSettingsPage(QWidget *parent) tabWidget->addTab(confirmationsPage, i18nc("@title:tab Confirmations settings", "Confirmations")); connect(confirmationsPage, &ConfirmationsSettingsPage::changed, this, &InterfaceSettingsPage::changed); +#if HAVE_BALOO + // initialize 'Panel' tab + PanelSettingsPage *panelPage = new PanelSettingsPage(tabWidget); + tabWidget->addTab(panelPage, i18nc("@title:tab Panels settings", "Panels")); + connect(panelPage, &PanelSettingsPage::changed, this, &InterfaceSettingsPage::changed); +#endif + // initialize 'Status & location bars' tab StatusAndLocationBarsSettingsPage *statusAndLocationBarsPage = new StatusAndLocationBarsSettingsPage(tabWidget, foldersTabsPage); tabWidget->addTab(statusAndLocationBarsPage, i18nc("@title:tab Status & Location bars settings", "Status && Location bars")); @@ -49,6 +60,11 @@ InterfaceSettingsPage::InterfaceSettingsPage(QWidget *parent) m_pages.append(foldersTabsPage); m_pages.append(previewsPage); m_pages.append(confirmationsPage); + +#if HAVE_BALOO + m_pages.append(panelPage); +#endif + m_pages.append(statusAndLocationBarsPage); topLayout->addWidget(tabWidget, 0, {}); -- cgit v1.3