From: duplo Date: Mon, 15 Dec 2008 14:31:55 +0000 (+0000) Subject: Add the settings handling method X-Git-Tag: 2.1.0~652 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=2cdf862d2d9f2f752a2668ebd19f290348ab986e;p=bertos.git Add the settings handling method git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2030 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BWizardPage.py b/wizard/BWizardPage.py index 4233fc5b..4eb9915b 100644 --- a/wizard/BWizardPage.py +++ b/wizard/BWizardPage.py @@ -20,4 +20,10 @@ class BWizardPage(QWizardPage): self.pageContent = uic.loadUi(wizardGui, None) layout = QVBoxLayout() layout.addWidget(self.pageContent) - self.setLayout(layout) \ No newline at end of file + self.setLayout(layout) + + def _settingsStore(self, key, value): + QApplication.instance().settings.setValue(QString(key), QVariant(value)) + + def _settingsRetrieve(self, key): + return QApplication.instance().settings.value(QString(key), QVariant()) \ No newline at end of file