summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefDisplay.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-11-04 14:29:48 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-11-04 14:51:55 -0800
commitbe3190db8a14fc51d88c65f5359b9b7787acd2a7 (patch)
tree6ddd57c9aca8e57b669d3627ea38caba3187ed80 /core/settings/qPrefDisplay.cpp
parent6201ac34b412eb57e0ca03401da22ed9ae683c38 (diff)
downloadsubsurface-be3190db8a14fc51d88c65f5359b9b7787acd2a7.tar.gz
revert preference settings for title color
Because of subsequent changes there is no clean way to just revert the changes introduced in commit 8b36cf1051 ("desktop: offer different colors for info tab titles"), so this manually removes the parts we don't need anymore. This also restores a tooltip value that was inadvertantly removed in that commit. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/settings/qPrefDisplay.cpp')
-rw-r--r--core/settings/qPrefDisplay.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/core/settings/qPrefDisplay.cpp b/core/settings/qPrefDisplay.cpp
index 9425062dc..c733b0c6b 100644
--- a/core/settings/qPrefDisplay.cpp
+++ b/core/settings/qPrefDisplay.cpp
@@ -55,7 +55,6 @@ void qPrefDisplay::loadSync(bool doSync)
disk_mobile_scale(doSync);
disk_display_invalid_dives(doSync);
disk_show_developer(doSync);
- disk_headerstyle_color(doSync);
if (!doSync) {
load_tooltip_position();
load_theme();
@@ -177,29 +176,6 @@ void qPrefDisplay::setCorrectFont()
prefs.display_invalid_dives = qPrefPrivate::propValue(keyFromGroupAndName(group, "displayinvalid"), default_prefs.display_invalid_dives).toBool();
}
-void qPrefDisplay::set_headerstyle_color(enum headerstyle_color_values value)
-{
- if (value != prefs.headerstyle_color) {
- prefs.headerstyle_color = value;
- disk_headerstyle_color(true);
- emit instance()->headerstyle_colorChanged(value);
- }
-}
-
-void qPrefDisplay::disk_headerstyle_color(bool doSync)
-{
- static enum headerstyle_color_values current_state;
- if (doSync) {
- if (current_state != prefs.headerstyle_color) {
- current_state = prefs.headerstyle_color;
- qPrefPrivate::propSetValue(keyFromGroupAndName(group, "headerstyle_color"), prefs.headerstyle_color, default_prefs.headerstyle_color);
- }
- } else {
- prefs.headerstyle_color = (enum headerstyle_color_values)qPrefPrivate::propValue(keyFromGroupAndName(group, "headerstyle_color"), default_prefs.headerstyle_color).toInt();
- current_state = prefs.headerstyle_color;
- }
-}
-
HANDLE_PROP_QSTRING(Display, "FileDialog/LastDir", lastDir);
HANDLE_PROP_QSTRING(Display, "Theme/currentTheme", theme);