mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-09 21:45:26 +00:00
29 lines
861 B
C
29 lines
861 B
C
|
#ifndef PREFERENCECATEGORY_H
|
||
|
#define PREFERENCECATEGORY_H
|
||
|
|
||
|
#include <QString>
|
||
|
#include <QTreeWidget>
|
||
|
#include <QStackedWidget>
|
||
|
|
||
|
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<PreferenceCategory> &children);
|
||
|
PreferenceCategory(const QString &name, const QIcon &icon,
|
||
|
const QList<PreferenceCategory> &children);
|
||
|
|
||
|
void addItem(QTreeWidget &tree, QStackedWidget &panel);
|
||
|
void addItem(QTreeWidgetItem &tree, QStackedWidget &panel);
|
||
|
|
||
|
private:
|
||
|
const QString name;
|
||
|
const QIcon icon;
|
||
|
QWidget *widget;
|
||
|
QList<PreferenceCategory> children;
|
||
|
};
|
||
|
|
||
|
#endif //PREFERENCECATEGORY_H
|