QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Classes | Public Member Functions | List of all members
QgsQuickMessageLogModel Class Reference

This model will connect to the QgsMessageLog singleton and store any messages received. More...

#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 ( QObject *  parent = nullptr)

Create new message log model.

Definition at line 23 of file qgsquickmessagelogmodel.cpp.

Member Function Documentation

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

Definition at line 55 of file qgsquickmessagelogmodel.cpp.

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

Definition at line 39 of file qgsquickmessagelogmodel.cpp.

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: