16 #ifndef QGSQUICKMESSAGELOGMODEL_H
17 #define QGSQUICKMESSAGELOGMODEL_H
19 #include <QAbstractListModel>
26 #include "qgis_quick.h"
47 LogMessage() =
default;
56 MessageRole = Qt::UserRole,
65 QHash<int, QByteArray> roleNames()
const override;
66 int rowCount(
const QModelIndex &parent )
const override;
67 QVariant data(
const QModelIndex &index,
int role )
const override;
70 void onMessageReceived(
const QString &message,
const QString &tag,
Qgis::MessageLevel level );
74 LogMessage logMessage(
const QString &tag,
const QString &message,
Qgis::MessageLevel level );
77 QVector<LogMessage> mMessages;
80 #endif // QGSQUICKMESSAGELOGMODEL_H