QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
Model for the layout items list view. More...
#include <qgslayoutitemslistview.h>
Public Slots | |
void | setSelected (const QModelIndex &index) |
Sets the selected index. | |
Public Member Functions | |
QgsLayoutItemsListViewModel (QgsLayoutModel *model, QObject *parent) | |
constructor | |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
QModelIndex | indexForItem (QgsLayoutItem *item, const int column=0) const |
Returns the model index matching the specified layout item. | |
QgsLayoutItem * | itemFromIndex (const QModelIndex &index) const |
Returns the layout item listed at the specified index. | |
Protected Member Functions | |
bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
Model for the layout items list view.
Definition at line 40 of file qgslayoutitemslistview.h.
QgsLayoutItemsListViewModel::QgsLayoutItemsListViewModel | ( | QgsLayoutModel * | model, |
QObject * | parent | ||
) |
constructor
Definition at line 27 of file qgslayoutitemslistview.cpp.
|
override |
Definition at line 56 of file qgslayoutitemslistview.cpp.
|
overrideprotected |
Definition at line 49 of file qgslayoutitemslistview.cpp.
QModelIndex QgsLayoutItemsListViewModel::indexForItem | ( | QgsLayoutItem * | item, |
const int | column = 0 |
||
) | const |
Returns the model index matching the specified layout item.
Definition at line 39 of file qgslayoutitemslistview.cpp.
QgsLayoutItem * QgsLayoutItemsListViewModel::itemFromIndex | ( | const QModelIndex & | index | ) | const |
Returns the layout item listed at the specified index.
Definition at line 34 of file qgslayoutitemslistview.cpp.
|
slot |
Sets the selected index.
Definition at line 44 of file qgslayoutitemslistview.cpp.