XX CMake Package
Loading...
Searching...
No Matches
XXQtMessageModel.h
Go to the documentation of this file.
1#ifndef XXQtMessageModelH
2#define XXQtMessageModelH
3
4#include "XXLogExportDef.h"
5#include <QStandardItemModel>
6
7namespace XX
8{
9 namespace QtMessage
10 {
13
14 class XXLOG_DECLSPEC Model : public QStandardItemModel
15 {
16 Q_OBJECT
17
18 public:
19 Model(QObject* parent, int maxLines = -1);
21
22 signals:
24
25 private:
26 enum Roles
27 {
28 RoleText = Qt::UserRole + 1,
29 RoleIcon
30 };
31
32 private:
33 void outputMessage(QtMsgType type, const QMessageLogContext& context, const QString& msg);
34
35 private:
36 const int maxLines;
37 };
38 } // namespace QtMessage
39} // namespace XX
40
41#endif // NOT XXQtMessageModelH
#define XXLOG_DECLSPEC
Definition XXLogExportDef.h:11
Model(QObject *parent, int maxLines=-1)
Definition XXQtMessageDocument.h:12
Definition XXPopulatedAbstract.h:11