QGIS API Documentation  3.8.0-Zanzibar (11aff65)
Public Types | Public Member Functions | List of all members
QgsValidityCheckResultsModel Class Reference

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

#include <qgsvaliditycheckresultswidget.h>

Inheritance diagram for QgsValidityCheckResultsModel:
Inheritance graph
[legend]

Public Types

enum  Roles { DescriptionRole = Qt::UserRole + 1 }
 Model roles. More...
 

Public Member Functions

 QgsValidityCheckResultsModel (const QList< QgsValidityCheckResult > &results, QObject *parent=nullptr)
 Constructor for QgsValidityCheckResultsModel, showing the specified list of checks results. More...
 
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 QgsAbtractValidityCheck.

Since
QGIS 3.6

Definition at line 37 of file qgsvaliditycheckresultswidget.h.

Member Enumeration Documentation

◆ Roles

Model roles.

Enumerator
DescriptionRole 

Result detailed description.

Definition at line 43 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 29 of file qgsvaliditycheckresultswidget.cpp.

Member Function Documentation

◆ columnCount()

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

Definition at line 54 of file qgsvaliditycheckresultswidget.cpp.

◆ data()

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

Definition at line 60 of file qgsvaliditycheckresultswidget.cpp.

◆ index()

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

Definition at line 36 of file qgsvaliditycheckresultswidget.cpp.

◆ parent()

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

Definition at line 42 of file qgsvaliditycheckresultswidget.cpp.

◆ rowCount()

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

Definition at line 48 of file qgsvaliditycheckresultswidget.cpp.


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