From e8a77613bca2fe1a8e543bdc4a26feabfae319f3 Mon Sep 17 00:00:00 2001 From: zhuzichu Date: Tue, 10 Oct 2023 18:31:22 +0800 Subject: [PATCH] update --- example/qml-Qt6/page/T_Settings.qml | 4 ++-- example/qml/page/T_Settings.qml | 4 ++-- example/src/helper/SettingsHelper.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/example/qml-Qt6/page/T_Settings.qml b/example/qml-Qt6/page/T_Settings.qml index 1dd35fc4..0174b410 100644 --- a/example/qml-Qt6/page/T_Settings.qml +++ b/example/qml-Qt6/page/T_Settings.qml @@ -63,10 +63,10 @@ FluScrollablePage{ paddings: 10 FluCheckBox{ text:"Software Render" - checked: SettingsHelper.getReander() === "software" + checked: SettingsHelper.getRender() === "software" anchors.verticalCenter: parent.verticalCenter onClicked: { - if(SettingsHelper.getReander() === "software"){ + if(SettingsHelper.getRender() === "software"){ SettingsHelper.saveRender("") }else{ SettingsHelper.saveRender("software") diff --git a/example/qml/page/T_Settings.qml b/example/qml/page/T_Settings.qml index 3c28ad86..f3e8b05f 100644 --- a/example/qml/page/T_Settings.qml +++ b/example/qml/page/T_Settings.qml @@ -66,10 +66,10 @@ FluScrollablePage{ paddings: 10 FluCheckBox{ text:"Software Render" - checked: SettingsHelper.getReander() === "software" + checked: SettingsHelper.getRender() === "software" anchors.verticalCenter: parent.verticalCenter onClicked: { - if(SettingsHelper.getReander() === "software"){ + if(SettingsHelper.getRender() === "software"){ SettingsHelper.saveRender("") }else{ SettingsHelper.saveRender("software") diff --git a/example/src/helper/SettingsHelper.h b/example/src/helper/SettingsHelper.h index 70ceed3f..0d15018f 100644 --- a/example/src/helper/SettingsHelper.h +++ b/example/src/helper/SettingsHelper.h @@ -20,7 +20,7 @@ public: ~SettingsHelper() override; void init(char *argv[]); 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 int getDarkMode(){return get("darkMode").toInt(0);} private: