mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Map Short Names - add preference setting
Adds a preference setting in the "Default" settings tab to toggle whether to display shortened names in the Map. TODO: instead of using the generic "settingsChanged" signal, it would be much more efficient to only update items based on the actual setting which was changed. Signed-off-by: Michael WERLE <micha@michaelwerle.com>
This commit is contained in:
parent
3dbba5ae69
commit
efb1832db8
7 changed files with 44 additions and 3 deletions
|
@ -68,6 +68,7 @@ void qPrefDisplay::loadSync(bool doSync)
|
|||
load_singleColumnPortrait();
|
||||
}
|
||||
disk_three_m_based_grid(doSync);
|
||||
disk_map_short_names(doSync);
|
||||
}
|
||||
|
||||
void qPrefDisplay::set_divelist_font(const QString &value)
|
||||
|
@ -151,6 +152,8 @@ HANDLE_PREFERENCE_BOOL(Display, "show_developer", show_developer);
|
|||
|
||||
HANDLE_PREFERENCE_BOOL(Display, "three_m_based_grid", three_m_based_grid);
|
||||
|
||||
HANDLE_PREFERENCE_BOOL(Display, "map_short_names", map_short_names);
|
||||
|
||||
void qPrefDisplay::setCorrectFont()
|
||||
{
|
||||
// get the font from the settings or our defaults
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue