From 5e92fc2d049ba6fbe6d86d43f615ad002cbf02e3 Mon Sep 17 00:00:00 2001 From: petrushka Date: Wed, 10 Apr 2013 11:22:24 +0400 Subject: [PATCH] Fix: add QT5 support --- ext/jasmine-webkit-specrunner/Page.h | 6 +++++- ext/jasmine-webkit-specrunner/Runner.h | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ext/jasmine-webkit-specrunner/Page.h b/ext/jasmine-webkit-specrunner/Page.h index bae094d..a78eafe 100644 --- a/ext/jasmine-webkit-specrunner/Page.h +++ b/ext/jasmine-webkit-specrunner/Page.h @@ -2,7 +2,11 @@ #define JHW_PAGE #include -#include +#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) + #include +#else + #include +#endif class Page: public QWebPage { Q_OBJECT diff --git a/ext/jasmine-webkit-specrunner/Runner.h b/ext/jasmine-webkit-specrunner/Runner.h index 3f1f01b..b09a595 100644 --- a/ext/jasmine-webkit-specrunner/Runner.h +++ b/ext/jasmine-webkit-specrunner/Runner.h @@ -2,7 +2,11 @@ #define JHW_RUNNER #include -#include +#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) + #include +#else + #include +#endif #include #include #include