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>
54 virtual void setSourceModel(QAbstractItemModel* sourceModel)
override;
56 virtual bool filterAcceptsRow(
int source_row,
const QModelIndex& source_parent)
const override;
60 QScopedPointer<Private> d;
66 Q_PROPERTY(
KDSME::State* state READ state WRITE setState)
70 ObjectRole = Qt::UserRole + 1,
84 void setState(
State* list);
86 virtual int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
87 virtual int columnCount(
const QModelIndex& parent)
const override;
88 virtual QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
89 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
90 virtual QHash< int, QByteArray > roleNames()
const override;
94 QScopedPointer<Private> d;
100 Q_PROPERTY(
KDSME::State* state READ state WRITE setState)
104 ElementRole = ObjectTreeModel::UserRole + 1
107 explicit StateModel(QObject* parent =
nullptr);
110 State* state()
const;
111 void setState(
State* state);
113 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
114 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
115 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
119 QScopedPointer<Private> d;
125 Q_DECLARE_METATYPE(
KDSME::StateModel*)
Definition: elementmodel.h:63
Definition: elementmodel.h:97
Definition: elementmodel.h:46
Definition: objecttreemodel.h:36
Definition: abstractexporter.h:33