Mercurial > public > ostc_companion
view Utils/LogEvent.h @ 2:177f640940f2
Update exception class and cleanup redifinitions
During firmware download and exception caused the application to stop.
Rootcause was the defference between QT5 and QT6 exception and string
handling which is updated now. In addition some old definitions were
removed to avoid compiler warnings.
| author | Ideenmodellierer |
|---|---|
| date | Fri, 28 Nov 2025 19:57:35 +0100 |
| parents | 0b3630a29ad8 |
| children |
line wrap: on
line source
///////////////////////////////////////////////////////////////////////////// /// \file LogEvent.h /// \brief User event to pass async messages to the console widget. /// \author JD Gascuel. /// \copyright (c) 2015 JD Gascuel. All rights reserved. /// $Id$ /////////////////////////////////////////////////////////////////////////////// // HISTORY // 2015-07-06 : Creation #ifndef LOGEVENT_H #define LOGEVENT_H #include <QEvent> #include <QString> class LogEvent : public QEvent { static QEvent::Type _logEventType; LogEvent(const QString& message); QString _message; public: static LogEvent* make(const QString& message); inline QString what() const { return _message; } }; #endif // LOGEVENT_H
