71 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex() )
const override;
72 QModelIndex parent(
const QModelIndex &index )
const override;
73 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
74 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
75 QVariant data(
const QModelIndex &index,
int role )
const override;
76 Qt::ItemFlags flags(
const QModelIndex &index )
const override;
77 bool setData(
const QModelIndex &index,
const QVariant &value,
int role )
override;
78 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const override;
79 Qt::DropActions supportedDropActions()
const override;
80 QStringList mimeTypes()
const override;
81 QMimeData *mimeData(
const QModelIndexList &indexes )
const override;
82 bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent )
override;
83 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex() )
override;
96 int zOrderListSize()
const;
186 QList<QgsLayoutItem *> &zOrderList();
202 void setItemRestored( QgsComposerItem *item );
244 QgsLayoutItem *itemFromIndex(
const QModelIndex &index )
const;
250 QModelIndex indexForItem(
QgsLayoutItem *item,
int column = 0 );
260 void setSelected(
const QModelIndex &index );
267 QList<QgsLayoutItem *> mItemZList;
270 QList<QgsLayoutItem *> mItemsInScene;
284 void refreshItemsInScene();
291 void rebuildSceneItemList();
293 friend class TestQgsLayoutModel;
294 friend class TestQgsLayoutGui;