QGIS API Documentation  3.14.0-Pi (9f7028fd23)
Public Slots | Public Member Functions | Protected Member Functions | List of all members
QgsLayoutItemsListViewModel Class Reference

#include <qgslayoutitemslistview.h>

Inheritance diagram for QgsLayoutItemsListViewModel:
Inheritance graph

Public Slots

void setSelected (const QModelIndex &index)
 Sets the selected index. More...

Public Member Functions

 QgsLayoutItemsListViewModel (QgsLayoutModel *model, QObject *parent)
 constructor More...
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
QgsLayoutItemitemFromIndex (const QModelIndex &index) const
 Returns the layout item listed at the specified index. More...

Protected Member Functions

bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override

Detailed Description

Model for the layout items list view.

See also
This class is not a part of public API
QGIS 3.12

Definition at line 40 of file qgslayoutitemslistview.h.

Constructor & Destructor Documentation

◆ QgsLayoutItemsListViewModel()

QgsLayoutItemsListViewModel::QgsLayoutItemsListViewModel ( QgsLayoutModel model,
QObject *  parent 


Definition at line 26 of file qgslayoutitemslistview.cpp.

Member Function Documentation

◆ data()

QVariant QgsLayoutItemsListViewModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Definition at line 50 of file qgslayoutitemslistview.cpp.

◆ filterAcceptsRow()

bool QgsLayoutItemsListViewModel::filterAcceptsRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const

Definition at line 43 of file qgslayoutitemslistview.cpp.

◆ itemFromIndex()

QgsLayoutItem * QgsLayoutItemsListViewModel::itemFromIndex ( const QModelIndex &  index) const

Returns the layout item listed at the specified index.

Definition at line 33 of file qgslayoutitemslistview.cpp.

◆ setSelected

void QgsLayoutItemsListViewModel::setSelected ( const QModelIndex &  index)

Sets the selected index.

Definition at line 38 of file qgslayoutitemslistview.cpp.

The documentation for this class was generated from the following files: