aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-07-18 18:24:39 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-07-18 19:13:32 +0200
commit110190d48a80a471e6d10d048602390b35e7ed07 (patch)
treecd10316c0fb74f9d3aa5473b62218add4b8752e8 /lib/events
parent6d24915e4bdd56dbdace8358297ee9d2d9aa83a0 (diff)
downloadlibquotient-110190d48a80a471e6d10d048602390b35e7ed07.tar.gz
libquotient-110190d48a80a471e6d10d048602390b35e7ed07.zip
Re-apply the previous commit and actually fix the breakage
Ok, it was stupid to delete #include <QtCore/QMetaType> in 004ebf8d and then to expect that Qt macros would still work, given that I don't use QObject. In my defense I can only say that with Qt 6 it still compiled.
Diffstat (limited to 'lib/events')
-rw-r--r--lib/events/eventcontent.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/events/eventcontent.h b/lib/events/eventcontent.h
index 78c5b287..1d81bd72 100644
--- a/lib/events/eventcontent.h
+++ b/lib/events/eventcontent.h
@@ -10,6 +10,7 @@
#include <QtCore/QMimeType>
#include <QtCore/QSize>
#include <QtCore/QUrl>
+#include <QtCore/QMetaType>
class QFileInfo;
@@ -153,13 +154,13 @@ namespace EventContent {
class TypedBase : public Base {
public:
- explicit TypedBase(QJsonObject o = {}) : Base(std::move(o)) {}
virtual QMimeType type() const = 0;
virtual const FileInfo* fileInfo() const { return nullptr; }
virtual FileInfo* fileInfo() { return nullptr; }
virtual const Thumbnail* thumbnailInfo() const { return nullptr; }
protected:
+ explicit TypedBase(QJsonObject o = {}) : Base(std::move(o)) {}
using Base::Base;
};