mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
kcms/mobileshell: Remove unused task switcher previews option
This commit is contained in:
parent
dd8916c611
commit
3673c20d52
3 changed files with 0 additions and 45 deletions
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue