Won't run and compile with qt5. #178

Open
petRUShka wants to merge 3 commits from petRUShka/master into master
2 changed files with 10 additions and 2 deletions
Showing only changes of commit 5e92fc2d04 - Show all commits

View File

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