Fix: add QT5 support

This commit is contained in:
petrushka 2013-04-10 11:22:24 +04:00
parent 1055dc1016
commit 5e92fc2d04
2 changed files with 10 additions and 2 deletions

View File

@ -2,7 +2,11 @@
#define JHW_PAGE #define JHW_PAGE
#include <QtGui> #include <QtGui>
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#include <QtWebKitWidgets>
#else
#include <QtWebKit> #include <QtWebKit>
#endif
class Page: public QWebPage { class Page: public QWebPage {
Q_OBJECT Q_OBJECT

View File

@ -2,7 +2,11 @@
#define JHW_RUNNER #define JHW_RUNNER
#include <QtGui> #include <QtGui>
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#include <QtWebKitWidgets>
#else
#include <QtWebKit> #include <QtWebKit>
#endif
#include <QFile> #include <QFile>
#include <QTextStream> #include <QTextStream>
#include <iostream> #include <iostream>