QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | Protected Member Functions | List of all members
QgsLayoutItemsListViewModel Class Reference

Model for the layout items list view. More...

#include <qgslayoutitemslistview.h>

Inheritance diagram for QgsLayoutItemsListViewModel:
Inheritance graph
[legend]

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.
 
QgsLayoutItemitemFromIndex (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
 

Detailed Description

Model for the layout items list view.

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

Definition at line 40 of file qgslayoutitemslistview.h.

Constructor & Destructor Documentation

◆ QgsLayoutItemsListViewModel()

QgsLayoutItemsListViewModel::QgsLayoutItemsListViewModel ( QgsLayoutModel model,
QObject *  parent 
)

constructor

Definition at line 27 of file qgslayoutitemslistview.cpp.

Member Function Documentation

◆ data()

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

Definition at line 56 of file qgslayoutitemslistview.cpp.

◆ filterAcceptsRow()

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

Definition at line 49 of file qgslayoutitemslistview.cpp.

◆ indexForItem()

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.

◆ itemFromIndex()

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

Returns the layout item listed at the specified index.

Definition at line 34 of file qgslayoutitemslistview.cpp.

◆ setSelected

void QgsLayoutItemsListViewModel::setSelected ( const QModelIndex &  index)
slot

Sets the selected index.

Definition at line 44 of file qgslayoutitemslistview.cpp.


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