13 #ifndef BERRYVIEWTREEMODEL_H
14 #define BERRYVIEWTREEMODEL_H
20 #include <QAbstractItemModel>
25 struct IWorkbenchWindow;
34 QObject* parent =
nullptr);
39 Description = Qt::UserRole,
44 QVariant data(
const QModelIndex &index,
int role)
const override;
45 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
46 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
47 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const override;
48 QModelIndex parent(
const QModelIndex &child)
const override;
49 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
50 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
57 QScopedPointer<Impl> d;
62 #endif // BERRYVIEWTREEMODEL_H