src/basics.h

changeset 237
10a6298f636f
parent 235
7ef03c2b46ab
child 259
c27612f0eac0
--- 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};

mercurial