Core: Add setting to hide the TaskWatcher (#22857)

* Core: Add setting to hide the TaskWatcher

* Move setting to Display/UI

* Clarify option description

Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>

* Use sentence case for section title

Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>

---------

Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
This commit is contained in:
theo-vt
2025-08-11 15:38:58 -04:00
committed by GitHub
parent 78b4e4211c
commit 44a8ec2b65
4 changed files with 69 additions and 8 deletions

View File

@@ -86,6 +86,9 @@ void DlgSettingsUI::saveSettings()
ui->overlayAutoHideCheckBox->onSave();
ui->mouseClickPassThroughCheckBox->onSave();
ui->mouseWheelPassThroughCheckBox->onSave();
// TaskWatcher
ui->showTaskWatcherCheckBox->onSave();
}
void DlgSettingsUI::loadSettings()
@@ -113,6 +116,9 @@ void DlgSettingsUI::loadSettings()
ui->mouseClickPassThroughCheckBox->onRestore();
ui->mouseWheelPassThroughCheckBox->onRestore();
// TaskWatcher
ui->showTaskWatcherCheckBox->onRestore();
loadStyleSheet();
}

View File

@@ -53,7 +53,7 @@
<property name="toolTip">
<string>This color might be used by your theme to let you customize it.</string>
</property>
<property name="color">
<property name="color" stdset="0">
<color>
<red>85</red>
<green>123</green>
@@ -119,7 +119,7 @@
<property name="toolTip">
<string>This color might be used by your theme to let you customize it.</string>
</property>
<property name="color">
<property name="color" stdset="0">
<color>
<red>85</red>
<green>123</green>
@@ -145,7 +145,7 @@
<property name="toolTip">
<string>This color might be used by your theme to let you customize it.</string>
</property>
<property name="color">
<property name="color" stdset="0">
<color>
<red>85</red>
<green>123</green>
@@ -497,10 +497,32 @@
</widget>
</item>
<item>
<spacer name="spacer_3">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>Suggested Actions</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="Gui::PrefCheckBox" name="showTaskWatcherCheckBox">
<property name="text">
<string>Suggest actions in the task view based on the selection</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>ShowTaskWatcher</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>General</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="spacer_3">
<property name="sizeHint" stdset="0">
<size>
<width>20</width>