mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: qPref, remove inline and ; for inline functions
Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
d6983391c6
commit
264aa883b2
8 changed files with 58 additions and 58 deletions
|
|
@ -25,20 +25,20 @@ public:
|
|||
|
||||
// Load/Sync local settings (disk) and struct preference
|
||||
void loadSync(bool doSync);
|
||||
void inline load() { loadSync(false); }
|
||||
void inline sync() { loadSync(true); }
|
||||
void load() { loadSync(false); }
|
||||
void sync() { loadSync(true); }
|
||||
|
||||
public:
|
||||
static inline bool coordinates_traditional() { return prefs.coordinates_traditional; }
|
||||
static inline units::DURATION duration_units() { return prefs.units.duration_units; }
|
||||
static inline units::LENGTH length() { return prefs.units.length; }
|
||||
static inline units::PRESSURE pressure() { return prefs.units.pressure; }
|
||||
static inline bool show_units_table() { return prefs.units.show_units_table; }
|
||||
static inline units::TEMPERATURE temperature() { return prefs.units.temperature; }
|
||||
static bool coordinates_traditional() { return prefs.coordinates_traditional; }
|
||||
static units::DURATION duration_units() { return prefs.units.duration_units; }
|
||||
static units::LENGTH length() { return prefs.units.length; }
|
||||
static units::PRESSURE pressure() { return prefs.units.pressure; }
|
||||
static bool show_units_table() { return prefs.units.show_units_table; }
|
||||
static units::TEMPERATURE temperature() { return prefs.units.temperature; }
|
||||
static QString unit_system();
|
||||
static inline units::TIME vertical_speed_time() { return prefs.units.vertical_speed_time; }
|
||||
static inline units::VOLUME volume() { return prefs.units.volume; }
|
||||
static inline units::WEIGHT weight() { return prefs.units.weight; }
|
||||
static units::TIME vertical_speed_time() { return prefs.units.vertical_speed_time; }
|
||||
static units::VOLUME volume() { return prefs.units.volume; }
|
||||
static units::WEIGHT weight() { return prefs.units.weight; }
|
||||
|
||||
public slots:
|
||||
void set_coordinates_traditional(bool value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue