X-Git-Url: http://git.johnwright.org/?p=fmit.git;a=blobdiff_plain;f=src%2FAutoQSettings.h;fp=src%2FAutoQSettings.h;h=40bafaa279b6a46eb1383104ff45d4431927a88f;hp=99ebcc6e0e5673b7ff06af1306b63b70e21836ac;hb=a8fb82288feb6b258f2c04312f0c36ba8d79b494;hpb=adfba0402927438a1869f1e716bcf0e25574ce1e diff --git a/src/AutoQSettings.h b/src/AutoQSettings.h index 99ebcc6..40bafaa 100644 --- a/src/AutoQSettings.h +++ b/src/AutoQSettings.h @@ -16,6 +16,9 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +#ifndef _AutoQSettings_h_ +#define _AutoQSettings_h_ + #include #include #include @@ -38,12 +41,12 @@ class AutoQSettings : public QSettings public: AutoQSettings(const QString& domain, const QString& product, const QString& setting_version); - void add(QCheckBox* el) {assert(el->name()!=""); m_elements_checkbox.push_back(el);} - void add(QSpinBox* el) {assert(el->name()!=""); m_elements_spinbox.push_back(el);} - void add(QLineEdit* el) {assert(el->name()!=""); m_elements_lineedit.push_back(el);} - void add(QComboBox* el) {assert(el->name()!=""); m_elements_combobox.push_back(el);} - void add(QGroupBox* el) {assert(el->name()!=""); m_elements_qgroupbox.push_back(el);} - void add(QRadioButton* el) {assert(el->name()!=""); m_elements_qradiobutton.push_back(el);} + void add(QCheckBox* el); + void add(QSpinBox* el); + void add(QLineEdit* el); + void add(QComboBox* el); + void add(QGroupBox* el); + void add(QRadioButton* el); void save(QCheckBox* el); void load(QCheckBox* el); @@ -52,3 +55,5 @@ class AutoQSettings : public QSettings void load(); void clear(); }; + +#endif // _AutoQSettings_h_