mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 05:38:37 +08:00
update
This commit is contained in:
parent
54f52e0886
commit
e8a77613bc
@ -63,10 +63,10 @@ FluScrollablePage{
|
|||||||
paddings: 10
|
paddings: 10
|
||||||
FluCheckBox{
|
FluCheckBox{
|
||||||
text:"Software Render"
|
text:"Software Render"
|
||||||
checked: SettingsHelper.getReander() === "software"
|
checked: SettingsHelper.getRender() === "software"
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if(SettingsHelper.getReander() === "software"){
|
if(SettingsHelper.getRender() === "software"){
|
||||||
SettingsHelper.saveRender("")
|
SettingsHelper.saveRender("")
|
||||||
}else{
|
}else{
|
||||||
SettingsHelper.saveRender("software")
|
SettingsHelper.saveRender("software")
|
||||||
|
@ -66,10 +66,10 @@ FluScrollablePage{
|
|||||||
paddings: 10
|
paddings: 10
|
||||||
FluCheckBox{
|
FluCheckBox{
|
||||||
text:"Software Render"
|
text:"Software Render"
|
||||||
checked: SettingsHelper.getReander() === "software"
|
checked: SettingsHelper.getRender() === "software"
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if(SettingsHelper.getReander() === "software"){
|
if(SettingsHelper.getRender() === "software"){
|
||||||
SettingsHelper.saveRender("")
|
SettingsHelper.saveRender("")
|
||||||
}else{
|
}else{
|
||||||
SettingsHelper.saveRender("software")
|
SettingsHelper.saveRender("software")
|
||||||
|
@ -20,7 +20,7 @@ public:
|
|||||||
~SettingsHelper() override;
|
~SettingsHelper() override;
|
||||||
void init(char *argv[]);
|
void init(char *argv[]);
|
||||||
Q_INVOKABLE void saveRender(const QString& render){save("render",render);}
|
Q_INVOKABLE void saveRender(const QString& render){save("render",render);}
|
||||||
Q_INVOKABLE QString getReander(){return get("render").toString();}
|
Q_INVOKABLE QString getRender(){return get("render").toString();}
|
||||||
Q_INVOKABLE void saveDarkMode(int darkModel){save("darkMode",darkModel);}
|
Q_INVOKABLE void saveDarkMode(int darkModel){save("darkMode",darkModel);}
|
||||||
Q_INVOKABLE int getDarkMode(){return get("darkMode").toInt(0);}
|
Q_INVOKABLE int getDarkMode(){return get("darkMode").toInt(0);}
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user