summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefDisplay.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-08-14 10:30:07 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-15 16:11:39 -0700
commit9b8a6fa8552647c1c1e7b78000e93a1bbc508365 (patch)
tree4196fe4371cab7e02c5168256e2d6ce380aadbce /core/settings/qPrefDisplay.cpp
parent0825f644e0b98190d68e0b63c4204fa8282e84b4 (diff)
downloadsubsurface-9b8a6fa8552647c1c1e7b78000e93a1bbc508365.tar.gz
core: make methods in qPref* static
Make methods static to allow fast and esay access use qPrefXYZ::foo() instead of qPrefXYZ::instance()->foo() Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/settings/qPrefDisplay.cpp')
-rw-r--r--core/settings/qPrefDisplay.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/settings/qPrefDisplay.cpp b/core/settings/qPrefDisplay.cpp
index 809a4fe77..5eb0b1eb6 100644
--- a/core/settings/qPrefDisplay.cpp
+++ b/core/settings/qPrefDisplay.cpp
@@ -38,7 +38,7 @@ void qPrefDisplay::set_divelist_font(const QString &value)
disk_divelist_font(true);
qApp->setFont(QFont(newValue));
- emit divelist_font_changed(value);
+ emit instance()->divelist_font_changed(value);
}
}
void qPrefDisplay::disk_divelist_font(bool doSync)
@@ -58,7 +58,7 @@ void qPrefDisplay::set_font_size(double value)
QFont defaultFont = qApp->font();
defaultFont.setPointSizeF(prefs.font_size);
qApp->setFont(defaultFont);
- emit font_size_changed(value);
+ emit instance()->font_size_changed(value);
}
}
void qPrefDisplay::disk_font_size(bool doSync)