//! The category of this settings page.
inline virtual QString category() const { return _category; }
//! The category of this settings page.
inline virtual QString category() const { return _category; }
* enabled. You also need to provide an implementation of defaults() then.
*
* The default implementation returns false.
* enabled. You also need to provide an implementation of defaults() then.
*
* The default implementation returns false.
inline virtual bool hasDefaults() const { return false; }
//! Check if there are changes in the page, compared to the state saved in permanent storage.
inline virtual bool hasDefaults() const { return false; }
//! Check if there are changes in the page, compared to the state saved in permanent storage.
inline virtual bool aboutToSave() { return true; }
//! sets checked state depending on \checked and stores the value for later comparision
inline virtual bool aboutToSave() { return true; }
//! sets checked state depending on \checked and stores the value for later comparision
- static void load(QCheckBox *box, bool checked);
- static bool hasChanged(QCheckBox *box);
- static void load(QComboBox *box, int index);
- static bool hasChanged(QComboBox *box);
- static void load(QSpinBox *box, int value);
- static bool hasChanged(QSpinBox *box);
- static void load(FontSelector *box, QFont value);
- static bool hasChanged(FontSelector *box);
+ static void load(QCheckBox* box, bool checked);
+ static bool hasChanged(QCheckBox* box);
+ static void load(QComboBox* box, int index);
+ static bool hasChanged(QComboBox* box);
+ static void load(QSpinBox* box, int value);
+ static bool hasChanged(QSpinBox* box);
+ static void load(FontSelector* box, QFont value);
+ static bool hasChanged(FontSelector* box);
- virtual QVariant loadAutoWidgetValue(const QString &widgetName);
- virtual void saveAutoWidgetValue(const QString &widgetName, const QVariant &value);
+ virtual QVariant loadAutoWidgetValue(const QString& widgetName);
+ virtual void saveAutoWidgetValue(const QString& widgetName, const QVariant& value);
- void findAutoWidgets(QObject *parent, QObjectList *widgetList) const;
- QByteArray autoWidgetPropertyName(QObject *widget) const;
- QString autoWidgetSettingsKey(QObject *widget) const;
+ void findAutoWidgets(QObject* parent, QObjectList* widgetList) const;
+ QByteArray autoWidgetPropertyName(QObject* widget) const;
+ QString autoWidgetSettingsKey(QObject* widget) const;
QString _category, _title;
bool _changed, _autoWidgetsChanged;
QString _category, _title;
bool _changed, _autoWidgetsChanged;