QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
QgsLayoutGuideProxyModel Class Reference

Filters QgsLayoutGuideCollection models to guides of a single orientation (horizontal or vertical). More...

#include <qgslayoutguidecollection.h>

Inheritance diagram for QgsLayoutGuideProxyModel:

Public Member Functions

 QgsLayoutGuideProxyModel (QObject *parent, Qt::Orientation orientation, int page)
 Constructor for QgsLayoutGuideProxyModel, filtered to guides of the specified orientation and page only.
bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override
bool lessThan (const QModelIndex &left, const QModelIndex &right) const override
void setPage (int page)
 Sets the current page for filtering matching guides.

Detailed Description

Filters QgsLayoutGuideCollection models to guides of a single orientation (horizontal or vertical).

Definition at line 323 of file qgslayoutguidecollection.h.

Constructor & Destructor Documentation

◆ QgsLayoutGuideProxyModel()

QgsLayoutGuideProxyModel::QgsLayoutGuideProxyModel ( QObject * parent,
Qt::Orientation orientation,
int page )
explicit

Constructor for QgsLayoutGuideProxyModel, filtered to guides of the specified orientation and page only.

Page numbers begin at 0.

Definition at line 597 of file qgslayoutguidecollection.cpp.

Member Function Documentation

◆ filterAcceptsRow()

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

Definition at line 612 of file qgslayoutguidecollection.cpp.

◆ lessThan()

bool QgsLayoutGuideProxyModel::lessThan ( const QModelIndex & left,
const QModelIndex & right ) const
override

Definition at line 623 of file qgslayoutguidecollection.cpp.

◆ setPage()

void QgsLayoutGuideProxyModel::setPage ( int page)

Sets the current page for filtering matching guides.

Page numbers begin at 0.

Definition at line 606 of file qgslayoutguidecollection.cpp.


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