XX CMake Package
Loading...
Searching...
No Matches
XXLoggerLabel.h
Go to the documentation of this file.
1#ifndef XXLoggerLabelH
2#define XXLoggerLabelH
3
5#include <XXLogger.h>
6#include <QLabel>
7
8#include <QDateTime>
9
10namespace XX
11{
12
16
17 class XXWIDGETS_DECLSPEC LoggerLabel : public QLabel, public Logger::Target
18 {
19 Q_OBJECT
20
21 public:
22 LoggerLabel(QWidget* parent, int stackSize = 10);
23
24 public:
25 void setShowToolTip(bool newShowToolTip);
26
27 private slots:
28 void slotUpdateTimeout();
29
30 private:
31 void update(const Entry::Buffer& buffer) override;
32 void mouseDoubleClickEvent(QMouseEvent* event) override;
33
34 private:
35 bool showToolTip;
36 QDateTime messageExpiration;
37 };
38} // namespace XX
39
40#endif // NOT XXLoggerLabelH
#define XXWIDGETS_DECLSPEC
Definition XXWidgetsExportDef.h:11
Definition XXLogger.h:20
void setShowToolTip(bool newShowToolTip)
LoggerLabel(QWidget *parent, int stackSize=10)
Definition XXPopulatedAbstract.h:11