18 #ifndef QGSCOMPOSERMODEL_H
19 #define QGSCOMPOSERMODEL_H
21 #include <QAbstractItemModel>
22 #include <QStringList>
62 QModelIndex
index(
int row,
int column,
const QModelIndex &parent = QModelIndex() )
const override;
63 QModelIndex parent(
const QModelIndex &index )
const override;
64 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
65 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
66 QVariant data(
const QModelIndex &index,
int role )
const override;
67 Qt::ItemFlags flags(
const QModelIndex & index )
const override;
68 bool setData(
const QModelIndex & index,
const QVariant & value,
int role )
override;
69 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const override;
70 Qt::DropActions supportedDropActions()
const override;
71 virtual QStringList mimeTypes()
const override;
72 virtual QMimeData* mimeData(
const QModelIndexList &indexes )
const override;
73 bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent )
override;
74 bool removeRows(
int row,
int count,
const QModelIndex & parent = QModelIndex() )
override;
86 int zOrderListSize()
const;
178 QList<QgsComposerItem *>* zOrderList();
238 void setSelected(
const QModelIndex &index );
271 QModelIndex indexForItem(
QgsComposerItem *item,
const int column = 0 );
281 void refreshItemsInScene();
287 void rebuildSceneItemList();
289 friend class TestQgsComposerModel;
292 #endif //QGSCOMPOSERMODEL