mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: activate qPrefLocationService
remove LocationService from SettingsObjectWrapper and reference qPrefLocationService update files using SettingsObjectWrapper/LocationService to use qPrefLocationService this activated qPrefLocationService and removed the similar class from SettingsObjectWrapper. Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
2b11fd4cc8
commit
75ce813a27
6 changed files with 15 additions and 72 deletions
|
|
@ -183,24 +183,6 @@ private:
|
|||
const QString group = QStringLiteral("Language");
|
||||
};
|
||||
|
||||
class LocationServiceSettingsObjectWrapper : public QObject {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(int time_threshold READ timeThreshold WRITE setTimeThreshold NOTIFY timeThresholdChanged)
|
||||
Q_PROPERTY(int distance_threshold READ distanceThreshold WRITE setDistanceThreshold NOTIFY distanceThresholdChanged)
|
||||
public:
|
||||
LocationServiceSettingsObjectWrapper(QObject *parent);
|
||||
int timeThreshold() const;
|
||||
int distanceThreshold() const;
|
||||
public slots:
|
||||
void setTimeThreshold(int value);
|
||||
void setDistanceThreshold(int value);
|
||||
signals:
|
||||
void timeThresholdChanged(int value);
|
||||
void distanceThresholdChanged(int value);
|
||||
private:
|
||||
const QString group = QStringLiteral("LocationService");
|
||||
};
|
||||
|
||||
class SettingsObjectWrapper : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
|
|
@ -216,7 +198,7 @@ class SettingsObjectWrapper : public QObject {
|
|||
Q_PROPERTY(qPrefDisplay* display MEMBER display_settings CONSTANT)
|
||||
Q_PROPERTY(LanguageSettingsObjectWrapper* language MEMBER language_settings CONSTANT)
|
||||
Q_PROPERTY(qPrefAnimations* animation MEMBER animation_settings CONSTANT)
|
||||
Q_PROPERTY(LocationServiceSettingsObjectWrapper* Location MEMBER location_settings CONSTANT)
|
||||
Q_PROPERTY(qPrefLocationService* Location MEMBER location_settings CONSTANT)
|
||||
|
||||
Q_PROPERTY(qPrefUpdateManager* update MEMBER update_manager_settings CONSTANT)
|
||||
Q_PROPERTY(qPrefDiveComputer* dive_computer MEMBER dive_computer_settings CONSTANT)
|
||||
|
|
@ -235,7 +217,7 @@ public:
|
|||
qPrefDisplay *display_settings;
|
||||
LanguageSettingsObjectWrapper *language_settings;
|
||||
qPrefAnimations *animation_settings;
|
||||
LocationServiceSettingsObjectWrapper *location_settings;
|
||||
qPrefLocationService *location_settings;
|
||||
qPrefUpdateManager *update_manager_settings;
|
||||
qPrefDiveComputer *dive_computer_settings;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue