diff --git a/components/shellsettingsplugin/mobileshellsettings.cpp b/components/shellsettingsplugin/mobileshellsettings.cpp index d12d88fe..ae6fffcb 100644 --- a/components/shellsettingsplugin/mobileshellsettings.cpp +++ b/components/shellsettingsplugin/mobileshellsettings.cpp @@ -113,19 +113,6 @@ void MobileShellSettings::setNavigationPanelEnabled(bool navigationPanelEnabled) updateNavigationBarsInPlasma(navigationPanelEnabled); } -bool MobileShellSettings::taskSwitcherPreviewsEnabled() const -{ - auto group = KConfigGroup{m_config, GENERAL_CONFIG_GROUP}; - return group.readEntry("taskSwitcherPreviewsEnabled", true); -} - -void MobileShellSettings::setTaskSwitcherPreviewsEnabled(bool taskSwitcherPreviewsEnabled) -{ - auto group = KConfigGroup{m_config, GENERAL_CONFIG_GROUP}; - group.writeEntry("taskSwitcherPreviewsEnabled", taskSwitcherPreviewsEnabled, KConfigGroup::Notify); - m_config->sync(); -} - MobileShellSettings::ActionDrawerMode MobileShellSettings::actionDrawerTopLeftMode() const { auto group = KConfigGroup{m_config, GENERAL_CONFIG_GROUP}; diff --git a/components/shellsettingsplugin/mobileshellsettings.h b/components/shellsettingsplugin/mobileshellsettings.h index 9485b686..3f731c70 100644 --- a/components/shellsettingsplugin/mobileshellsettings.h +++ b/components/shellsettingsplugin/mobileshellsettings.h @@ -30,9 +30,6 @@ class MobileShellSettings : public QObject // navigation panel Q_PROPERTY(bool navigationPanelEnabled READ navigationPanelEnabled WRITE setNavigationPanelEnabled NOTIFY navigationPanelEnabledChanged) - // task switcher - Q_PROPERTY(bool taskSwitcherPreviewsEnabled READ taskSwitcherPreviewsEnabled WRITE setTaskSwitcherPreviewsEnabled NOTIFY taskSwitcherPreviewsEnabledChanged) - // action drawer Q_PROPERTY(ActionDrawerMode actionDrawerTopLeftMode READ actionDrawerTopLeftMode WRITE setActionDrawerTopLeftMode NOTIFY actionDrawerTopLeftModeChanged) Q_PROPERTY(ActionDrawerMode actionDrawerTopRightMode READ actionDrawerTopRightMode WRITE setActionDrawerTopRightMode NOTIFY actionDrawerTopRightModeChanged) @@ -119,18 +116,6 @@ public: */ void setNavigationPanelEnabled(bool navigationPanelEnabled); - /** - * Whether task switcher application previews are enabled. - */ - bool taskSwitcherPreviewsEnabled() const; - - /** - * Set whether task switcher application previews are enabled. - * - * @param taskSwitcherPreviewsEnabled Whether task switcher previews are enabled. - */ - void setTaskSwitcherPreviewsEnabled(bool taskSwitcherPreviewsEnabled); - /** * The mode of the action drawer when swiped down from the top left. */ diff --git a/kcms/mobileshell/ui/main.qml b/kcms/mobileshell/ui/main.qml index d583c947..688a0b98 100644 --- a/kcms/mobileshell/ui/main.qml +++ b/kcms/mobileshell/ui/main.qml @@ -67,23 +67,6 @@ KCM.SimpleKCM { } } - FormCard.FormHeader { - title: i18n("Task Switcher") - } - - FormCard.FormCard { - FormCard.FormSwitchDelegate { - text: i18n("Show Application Previews") - description: i18n("Turning this off may help improve performance.") - checked: ShellSettings.Settings.taskSwitcherPreviewsEnabled - onCheckedChanged: { - if (checked != ShellSettings.Settings.taskSwitcherPreviewsEnabled) { - ShellSettings.Settings.taskSwitcherPreviewsEnabled = checked; - } - } - } - } - FormCard.FormHeader { title: i18n("Action Drawer") }