diff options
| author | arch <ABBAPOH@nextmail.ru> | 2012-02-26 11:34:59 +0400 |
|---|---|---|
| committer | David Faure <faure@kde.org> | 2012-02-26 10:39:39 +0100 |
| commit | d90cb9552c5668ebc77aebb2a061b60697f8d93f (patch) | |
| tree | 00050d2f6a3d23f36d5f50d6b90f87e88d359ced | |
| parent | 466e001efe56c9419c4e3e1fabbd96c3600fee39 (diff) | |
Add version check to prevent building qmime with qt5
Change-Id: I94e932b2c193871de10dfc448153adf25886612f
Reviewed-by: David Faure <faure@kde.org>
| -rw-r--r-- | src/mimetypes/qmimedatabase.h | 6 | ||||
| -rw-r--r-- | src/mimetypes/qmimetype.h | 6 |
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; |
