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
7
namespace
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);
20
~Model
();
21
22
signals:
23
void
contentUpdated
();
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
XXLogExportDef.h
XXLOG_DECLSPEC
#define XXLOG_DECLSPEC
Definition
XXLogExportDef.h:11
XX::QtMessage::Model::Model
Model(QObject *parent, int maxLines=-1)
XX::QtMessage::Model::contentUpdated
void contentUpdated()
XX::QtMessage::Model::~Model
~Model()
XX::QtMessage
Definition
XXQtMessageDocument.h:12
XX
Definition
XXPopulatedAbstract.h:11
XXLog
XXQtMessageModel.h
Generated by
1.16.1