18 #ifndef QGSCOMPOSERMODEL_H 19 #define QGSCOMPOSERMODEL_H 21 #include <QAbstractItemModel> 22 #include <QSortFilterProxyModel> 23 #include <QStringList> 78 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const override;
95 int zOrderListSize()
const;
283 void refreshItemsInScene();
289 void rebuildSceneItemList();
291 friend class TestQgsComposerModel;
292 friend class TestQgsComposerGui;
361 #endif //QGSCOMPOSERMODEL
virtual int rowCount(const QModelIndex &parent) const=0
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const=0
A item that forms part of a map composition.
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
virtual QStringList mimeTypes() const
QList< QgsComposerItem * > mItemZList
Maintains z-Order of items.
QgsComposerItem::ItemType filterType() const
Returns the current item type filter, or QgsComposerItem::ComposerItem if no item type filter is set...
virtual Qt::DropActions supportedDropActions() const
QList< QgsComposerItem *> exceptedItemList() const
Returns the list of specific items excluded from the model.
virtual QVariant data(const QModelIndex &index, int role) const=0
QgsComposerModel * sourceLayerModel() const
Returns the QgsComposerModel used in this proxy model.
virtual QMimeData * mimeData(const QModelIndexList &indexes) const
QList< QgsComposerItem * > mItemsInScene
Cached list of items from mItemZList which are currently in the scene.
Graphics scene for map printing.
A model for items attached to a composition.
virtual bool removeRows(int row, int count, const QModelIndex &parent)
Columns
Columns returned by the model.
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
QAbstractItemModel * sourceModel() const
virtual int columnCount(const QModelIndex &parent) const=0
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Allows for filtering a QgsComposerModel by item type.