#include "settingspage.h"
+#include <QCheckBox>
+#include <QVariant>
+
SettingsPage::SettingsPage(const QString &category, const QString &title, QWidget *parent)
: QWidget(parent),
_category(category),
}
}
+void SettingsPage::load(QCheckBox *box, bool checked) {
+ box->setProperty("StoredValue", checked);
+ box->setChecked(checked);
+}
+
+bool SettingsPage::hasChanged(QCheckBox *box) {
+ return box->property("StoredValue").toBool() == box->isChecked();
+}