mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-26 05:17:05 +08:00
update
This commit is contained in:
parent
5f6c468043
commit
d655dc0141
@ -24,7 +24,7 @@ public:
|
|||||||
Q_INVOKABLE void saveUseSystemAppBar(bool useSystemAppBar){save("useSystemAppBar",useSystemAppBar);}
|
Q_INVOKABLE void saveUseSystemAppBar(bool useSystemAppBar){save("useSystemAppBar",useSystemAppBar);}
|
||||||
Q_INVOKABLE bool getUseSystemAppBar(){return get("useSystemAppBar",QVariant(false)).toBool();}
|
Q_INVOKABLE bool getUseSystemAppBar(){return get("useSystemAppBar",QVariant(false)).toBool();}
|
||||||
Q_INVOKABLE void saveLanguage(QString language){save("language",language);}
|
Q_INVOKABLE void saveLanguage(QString language){save("language",language);}
|
||||||
Q_INVOKABLE QString getLanguage(){return get("language",QVariant("en")).toString();}
|
Q_INVOKABLE QString getLanguage(){return get("language",QVariant("en_US")).toString();}
|
||||||
private:
|
private:
|
||||||
void save(const QString& key,QVariant val);
|
void save(const QString& key,QVariant val);
|
||||||
QVariant get(const QString& key,QVariant def={});
|
QVariant get(const QString& key,QVariant def={});
|
||||||
|
Loading…
Reference in New Issue
Block a user