Fix: add QT5 support
This commit is contained in:
parent
1055dc1016
commit
5e92fc2d04
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user