diff options
author | Wolf-Michael Bolle <wolf-michael.bolle@nokia.com> | 2011-10-17 15:37:02 +0200 |
---|---|---|
committer | Wolf-Michael Bolle <wolf-michael.bolle@nokia.com> | 2011-10-17 16:21:02 +0200 |
commit | 71c02be6db892703235f55c43354767114ec9891 (patch) | |
tree | ba8d0e0edf8c03bc8eb8e8d193ef3deee1984e17 /examples/mimetypeviewer | |
parent | 7977ce3e789e1006246a247ab052dce7d6eb0fb0 (diff) |
Compatibility for Qt 4 and 5.
Diffstat (limited to 'examples/mimetypeviewer')
-rw-r--r-- | examples/mimetypeviewer/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/mimetypeviewer/main.cpp b/examples/mimetypeviewer/main.cpp index fc58363..8186b11 100644 --- a/examples/mimetypeviewer/main.cpp +++ b/examples/mimetypeviewer/main.cpp @@ -1,6 +1,11 @@ -#include <QtGui/QApplication> #include "mimetypeviewer.h" +#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) +#include <QtWidgets/QApplication> +#else +#include <QtGui/QApplication> +#endif + int main(int argc, char *argv[]) { QApplication a(argc, argv); |