mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
0825f644e0
commit
9b8a6fa855
22 changed files with 349 additions and 348 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue