try fix android behavior

This commit is contained in:
Andrei Yankovich 2023-04-07 15:01:10 +02:00
parent c462f44e6b
commit f3519b341a
2 changed files with 11 additions and 0 deletions

View File

@ -40,6 +40,14 @@ void ISettings::setMode(const SettingsSaveMode &mode) {
_mode = mode; _mode = mode;
} }
ISettings *ISettings::instance() {
return Service<ISettings>::instance();
}
bool ISettings::initService(std::unique_ptr<ISettings> obj) {
return Service<ISettings>::initService(std::move(obj));
}
QVariant ISettings::getValue(const QString &key, const QVariant &def) { QVariant ISettings::getValue(const QString &key, const QVariant &def) {
debug_assert(key.size(), "You can't use the empty key value!"); debug_assert(key.size(), "You can't use the empty key value!");

View File

@ -104,6 +104,9 @@ public:
*/ */
void setMode(const SettingsSaveMode &mode); void setMode(const SettingsSaveMode &mode);
static ISettings* instance();
static bool initService(std::unique_ptr<ISettings> obj);
public slots: public slots:
/** /**
* @brief setValue This slot sets new value for a @a key setting * @brief setValue This slot sets new value for a @a key setting