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