aboutsummaryrefslogtreecommitdiff
path: root/lib/util.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-02 13:15:39 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-03 11:22:19 +0900
commitded46e7115cf9a3460a780f445a0c8ff22a628fa (patch)
tree3b08b0a195205e7eef2212ca763fabf23b827954 /lib/util.h
parent47f27816c401a6cc15fb13607658aee716a2eb2c (diff)
downloadlibquotient-ded46e7115cf9a3460a780f445a0c8ff22a628fa.tar.gz
libquotient-ded46e7115cf9a3460a780f445a0c8ff22a628fa.zip
Provide #include back-compatibility for REGISTER_ENUM
Diffstat (limited to 'lib/util.h')
-rw-r--r--lib/util.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/util.h b/lib/util.h
index fbbe32b2..8c925d71 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -18,9 +18,11 @@
#pragma once
-//#include <QtCore/QMetaEnum> // We're about to drop REGISTER_ENUM,
-//#include <QtCore/QDebug> // therefore these are commented out
#include <QtCore/QPointer>
+#if (QT_VERSION < QT_VERSION_CHECK(5, 5, 0))
+#include <QtCore/QMetaEnum>
+#include <QtCore/QDebug>
+#endif
#include <functional>
#include <memory>