mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: make load/sync inline in qPrefAnimations
Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
0002cd2d20
commit
254ba61fd9
2 changed files with 6 additions and 6 deletions
|
@ -15,8 +15,8 @@ public:
|
|||
|
||||
// Load/Sync local settings (disk) and struct preference
|
||||
void loadSync(bool doSync);
|
||||
void load() { loadSync(false); }
|
||||
void sync() { loadSync(true); }
|
||||
void inline load() { loadSync(false); }
|
||||
void inline sync() { loadSync(true); }
|
||||
|
||||
public:
|
||||
static inline int animation_speed() { return prefs.animation_speed; };
|
||||
|
|
|
@ -23,11 +23,11 @@ public:
|
|||
void inline sync() {loadSync(true); }
|
||||
|
||||
public:
|
||||
static inline const QString& device() {return prefs.dive_computer.device; };
|
||||
static inline const QString& device_name() {return prefs.dive_computer.device_name; };
|
||||
static inline QString device() {return prefs.dive_computer.device; };
|
||||
static inline QString device_name() {return prefs.dive_computer.device_name; };
|
||||
static inline int download_mode() {return prefs.dive_computer.download_mode; };
|
||||
static inline const QString& product() {return prefs.dive_computer.product; };
|
||||
static inline const QString& vendor() {return prefs.dive_computer.vendor; };
|
||||
static inline QString product() {return prefs.dive_computer.product; };
|
||||
static inline QString vendor() {return prefs.dive_computer.vendor; };
|
||||
|
||||
public slots:
|
||||
void set_device(const QString& device);
|
||||
|
|
Loading…
Add table
Reference in a new issue