QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
QgsValidityCheckResultsModel Class Reference

A QAbstractItemModel subclass for displaying the results from a QgsAbstractValidityCheck. More...

#include <qgsvaliditycheckresultswidget.h>

Inheritance diagram for QgsValidityCheckResultsModel:
Inheritance graph
[legend]

Public Types

enum class  CustomRole : int { Description = Qt::UserRole + 1 }
 Custom model roles. More...
 

Public Member Functions

 QgsValidityCheckResultsModel (const QList< QgsValidityCheckResult > &results, QObject *parent=nullptr)
 Constructor for QgsValidityCheckResultsModel, showing the specified list of checks results.
 
int columnCount (const QModelIndex &parent) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
QModelIndex index (int row, int column, const QModelIndex &parent) const override
 
QModelIndex parent (const QModelIndex &child) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 

Detailed Description

A QAbstractItemModel subclass for displaying the results from a QgsAbstractValidityCheck.

Since
QGIS 3.6

Definition at line 37 of file qgsvaliditycheckresultswidget.h.

Member Enumeration Documentation

◆ CustomRole

Custom model roles.

Note
Prior to QGIS 3.36 this was available as QgsValidityCheckResultsModel::Roles
Since
QGIS 3.36
Enumerator
Description 

Result detailed description.

Definition at line 50 of file qgsvaliditycheckresultswidget.h.

Constructor & Destructor Documentation

◆ QgsValidityCheckResultsModel()

QgsValidityCheckResultsModel::QgsValidityCheckResultsModel ( const QList< QgsValidityCheckResult > &  results,
QObject *  parent = nullptr 
)

Constructor for QgsValidityCheckResultsModel, showing the specified list of checks results.

Definition at line 30 of file qgsvaliditycheckresultswidget.cpp.

Member Function Documentation

◆ columnCount()

int QgsValidityCheckResultsModel::columnCount ( const QModelIndex &  parent) const
override

Definition at line 55 of file qgsvaliditycheckresultswidget.cpp.

◆ data()

QVariant QgsValidityCheckResultsModel::data ( const QModelIndex &  index,
int  role 
) const
override

Definition at line 61 of file qgsvaliditycheckresultswidget.cpp.

◆ index()

QModelIndex QgsValidityCheckResultsModel::index ( int  row,
int  column,
const QModelIndex &  parent 
) const
override

Definition at line 37 of file qgsvaliditycheckresultswidget.cpp.

◆ parent()

QModelIndex QgsValidityCheckResultsModel::parent ( const QModelIndex &  child) const
override

Definition at line 43 of file qgsvaliditycheckresultswidget.cpp.

◆ rowCount()

int QgsValidityCheckResultsModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

Definition at line 49 of file qgsvaliditycheckresultswidget.cpp.


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