25 #ifndef KDSME_MODEL_ELEMENTMODEL_H
26 #define KDSME_MODEL_ELEMENTMODEL_H
29 #include "objecttreemodel.h"
30 #include "kdsme_core_export.h"
32 #include <QAbstractItemModel>
35 #include <QSortFilterProxyModel>
56 void setSourceModel(QAbstractItemModel* sourceModel)
override;
58 bool filterAcceptsRow(
int source_row,
const QModelIndex& source_parent)
const override;
62 QScopedPointer<Private> d;
68 Q_PROPERTY(
KDSME::State* state READ state WRITE setState)
72 ObjectRole = Qt::UserRole + 1,
86 void setState(
State* list);
88 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
89 int columnCount(
const QModelIndex& parent)
const override;
90 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
91 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
92 QHash< int, QByteArray > roleNames()
const override;
96 QScopedPointer<Private> d;
102 Q_PROPERTY(
KDSME::State* state READ state WRITE setState)
106 ElementRole = ObjectTreeModel::UserRole + 1,
110 explicit StateModel(QObject* parent =
nullptr);
113 State* state()
const;
114 void setState(
State* state);
116 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
117 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
118 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
122 QScopedPointer<Private> d;
128 Q_DECLARE_METATYPE(
KDSME::StateModel*)
Definition: elementmodel.h:65
Definition: elementmodel.h:99
Definition: elementmodel.h:48
Role
Definition: elementmodel.h:105
return quint64
Definition: elementmodel.h:107
Definition: objecttreemodel.h:36
Definition: abstractexporter.h:33