25 #ifndef KDSME_UTIL_OBJECTTREEMODEL_H
26 #define KDSME_UTIL_OBJECTTREEMODEL_H
28 #include "kdsme_core_export.h"
30 #include <QAbstractItemModel>
34 class ObjectTreeModelPrivate;
82 ObjectRole = Qt::UserRole + 1,
84 UserRole = Qt::UserRole + 100
90 void appendRootObject(QObject*
object);
91 QList<QObject*> rootObjects()
const;
92 void setRootObject(QObject* rootObject);
93 void setRootObjects(
const QList<QObject*>& rootObjects);
96 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
97 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
98 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
99 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const override;
100 QModelIndex parent(
const QModelIndex &index)
const override;
101 QHash< int, QByteArray > roleNames()
const override;
103 QModelIndex indexForObject(QObject*
object)
const;
107 ObjectTreeModelPrivate * const d_ptr;
Definition: objecttreemodel.h:41
Definition: objecttreemodel.h:51
Definition: objecttreemodel.h:71
Definition: objecttreemodel.h:36
return quint64
Definition: objecttreemodel.h:83
Roles
Definition: objecttreemodel.h:81
Definition: objecttreemodel.h:61
Definition: abstractexporter.h:33