Mercurial > public > ostc_companion
comparison Utils/LogEvent.h @ 1:0b3630a29ad8
Initial version based on previous repository.
Project was ported to QT6 and in now cmake based.
| author | Ideenmodellierer <tiefenrauscher@web.de> |
|---|---|
| date | Thu, 27 Nov 2025 18:40:28 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:76ccd6ce50c0 | 1:0b3630a29ad8 |
|---|---|
| 1 ///////////////////////////////////////////////////////////////////////////// | |
| 2 /// \file LogEvent.h | |
| 3 /// \brief User event to pass async messages to the console widget. | |
| 4 /// \author JD Gascuel. | |
| 5 /// \copyright (c) 2015 JD Gascuel. All rights reserved. | |
| 6 /// $Id$ | |
| 7 /////////////////////////////////////////////////////////////////////////////// | |
| 8 // HISTORY | |
| 9 // 2015-07-06 : Creation | |
| 10 | |
| 11 #ifndef LOGEVENT_H | |
| 12 #define LOGEVENT_H | |
| 13 | |
| 14 #include <QEvent> | |
| 15 #include <QString> | |
| 16 | |
| 17 class LogEvent : public QEvent | |
| 18 { | |
| 19 static QEvent::Type _logEventType; | |
| 20 LogEvent(const QString& message); | |
| 21 | |
| 22 QString _message; | |
| 23 | |
| 24 public: | |
| 25 static LogEvent* make(const QString& message); | |
| 26 | |
| 27 inline QString what() const { return _message; } | |
| 28 }; | |
| 29 | |
| 30 #endif // LOGEVENT_H |
