summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mimetypes/qmimedatabase.h6
-rw-r--r--src/mimetypes/qmimetype.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/mimetypes/qmimedatabase.h b/src/mimetypes/qmimedatabase.h
index de9c6ca..9cc4626 100644
--- a/src/mimetypes/qmimedatabase.h
+++ b/src/mimetypes/qmimedatabase.h
@@ -49,6 +49,12 @@
#include <QtCore/qstringlist.h>
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
+#ifndef Q_CC_MSVC
+#error "Do not try to use this library with Qt5, use QtCore/QMimeType instead"
+#endif
+#endif
+
QT_BEGIN_NAMESPACE
class QByteArray;
diff --git a/src/mimetypes/qmimetype.h b/src/mimetypes/qmimetype.h
index 98448a5..17d7c70 100644
--- a/src/mimetypes/qmimetype.h
+++ b/src/mimetypes/qmimetype.h
@@ -48,6 +48,12 @@
#include <QtCore/qshareddata.h>
#include <QtCore/qstring.h>
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
+#ifndef Q_CC_MSVC
+#error "Do not try to use this library with Qt5, use QtCore/QMimeType instead"
+#endif
+#endif
+
QT_BEGIN_NAMESPACE
class QMimeTypePrivate;