#ifndef PREFERENCECATEGORY_H #define PREFERENCECATEGORY_H #include #include #include class PreferenceCategory { public: PreferenceCategory(const QString &name, const QIcon &icon); PreferenceCategory(const QString &name, QWidget *widget, const QIcon &icon); PreferenceCategory(const QString &name, QWidget *widget, const QIcon &icon, const QList &children); PreferenceCategory(const QString &name, const QIcon &icon, const QList &children); void addItem(QTreeWidget &tree, QStackedWidget &panel); void addItem(QTreeWidgetItem &tree, QStackedWidget &panel); private: QString name; QIcon icon; QWidget *widget; QList children; }; #endif //PREFERENCECATEGORY_H