diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-02 13:15:39 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-03 11:22:19 +0900 |
commit | ded46e7115cf9a3460a780f445a0c8ff22a628fa (patch) | |
tree | 3b08b0a195205e7eef2212ca763fabf23b827954 /lib/util.h | |
parent | 47f27816c401a6cc15fb13607658aee716a2eb2c (diff) | |
download | libquotient-ded46e7115cf9a3460a780f445a0c8ff22a628fa.tar.gz libquotient-ded46e7115cf9a3460a780f445a0c8ff22a628fa.zip |
Provide #include back-compatibility for REGISTER_ENUM
Diffstat (limited to 'lib/util.h')
-rw-r--r-- | lib/util.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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> |