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

#include <qgsquickmessagelogmodel.h>

Inheritance diagram for QgsQuickMessageLogModel:
Inheritance graph
[legend]

Public Member Functions

 QgsQuickMessageLogModel (QObject *parent=nullptr)
 Create new message log model. More...
 
QVariant data (const QModelIndex &index, int role) const override
 
QHash< int, QByteArray > roleNames () const override
 
int rowCount (const QModelIndex &parent) const override
 

Detailed Description

This model will connect to the QgsMessageLog singleton and store any messages received. Can be used as a model for QListView, for example QgsQuick.MessageLog (QML only)

Note
QML Type: MessageLogModel
See also
QgsMessageLog
Since
QGIS 3.2

Definition at line 41 of file qgsquickmessagelogmodel.h.

Constructor & Destructor Documentation

◆ QgsQuickMessageLogModel()

QgsQuickMessageLogModel::QgsQuickMessageLogModel ( QObject *  parent = nullptr)

Create new message log model.

Definition at line 23 of file qgsquickmessagelogmodel.cpp.

Member Function Documentation

◆ data()

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

Definition at line 55 of file qgsquickmessagelogmodel.cpp.

◆ roleNames()

QHash< int, QByteArray > QgsQuickMessageLogModel::roleNames ( ) const
override

Definition at line 39 of file qgsquickmessagelogmodel.cpp.

◆ rowCount()

int QgsQuickMessageLogModel::rowCount ( const QModelIndex &  parent) const
override

Definition at line 49 of file qgsquickmessagelogmodel.cpp.


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