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
#include <QtGui>
#include <QtWebKit>
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#include <QtWebKitWidgets>
#else
#include <QtWebKit>
#endif
class Page: public QWebPage {
Q_OBJECT

View File

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