diff -r 1fa0e1de9f0a -r 10a6298f636f src/basics.h --- a/src/basics.h Mon Jun 20 18:40:22 2022 +0300 +++ b/src/basics.h Mon Jun 20 19:49:56 2022 +0300 @@ -300,10 +300,12 @@ struct Message { QDateTime time; - enum { Info, Warning, Error } type; + enum Type { Info, Warning, Error } type; QString text; }; +Q_DECLARE_METATYPE(Message) + inline Message logInfo(const QString text) { return Message{.time = QDateTime::currentDateTime(), .type = Message::Info, .text = text};