aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/help
diff options
context:
space:
mode:
authorGravatar Fabio Bas2012-10-31 18:44:24 +0000
committerGravatar Fabio Bas2012-10-31 18:44:24 +0000
commit0e33f73fbff89fa8b5d0b3336e4642559ac153d3 (patch)
tree5a038197a46b0f379193d3e62edee3bdb40f12ed /src/modules/help
parent- update KviOsInfo with values from the winsdk8 (diff)
downloadKVIrc-0e33f73fbff89fa8b5d0b3336e4642559ac153d3.tar.gz
KVIrc-0e33f73fbff89fa8b5d0b3336e4642559ac153d3.tar.bz2
KVIrc-0e33f73fbff89fa8b5d0b3336e4642559ac153d3.zip
Fixed compilation with recent qt5 snapshots:
* QWebKit has been renamed to QWebKitWidgets * QCleanlooksStyle is not included by default, use QFusionStyle instead This breaks compatibility with qt5-beta1, but beta2 should be right around the corner git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6280 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/help')
-rw-r--r--src/modules/help/HelpWidget.cpp1
-rw-r--r--src/modules/help/HelpWidget.h14
-rw-r--r--src/modules/help/HelpWindow.h8
3 files changed, 15 insertions, 8 deletions
diff --git a/src/modules/help/HelpWidget.cpp b/src/modules/help/HelpWidget.cpp
index cf809ed21..44be162fe 100644
--- a/src/modules/help/HelpWidget.cpp
+++ b/src/modules/help/HelpWidget.cpp
@@ -45,7 +45,6 @@ extern KviPointerList<HelpWindow> * g_pHelpWindowList;
extern KviPointerList<HelpWidget> * g_pHelpWidgetList;
#ifdef COMPILE_WEBKIT_SUPPORT
-#include <QtWebKit/QWebView>
#include <QShortcut>
#define HIGHLIGHT_FLAGS QWebPage::HighlightAllOccurrences
diff --git a/src/modules/help/HelpWidget.h b/src/modules/help/HelpWidget.h
index 748a9d6e9..43d8e8ccc 100644
--- a/src/modules/help/HelpWidget.h
+++ b/src/modules/help/HelpWidget.h
@@ -28,12 +28,16 @@
#include "kvi_settings.h"
#ifdef COMPILE_WEBKIT_SUPPORT
-#include <QtWebKit/QWebView>
-#include <QToolBar>
-#include <QVBoxLayout>
+ #if (QT_VERSION < 0x050000)
+ #include <QtWebKit/QWebView>
+ #else
+ #include <QtWebKitWidgets/QWebView>
+ #endif
+ #include <QToolBar>
+ #include <QVBoxLayout>
#else
-#include "KviTalHBox.h"
-#include <QTextBrowser>
+ #include "KviTalHBox.h"
+ #include <QTextBrowser>
#endif
#include <QProgressBar>
diff --git a/src/modules/help/HelpWindow.h b/src/modules/help/HelpWindow.h
index cb7d4c62e..29e6a3dea 100644
--- a/src/modules/help/HelpWindow.h
+++ b/src/modules/help/HelpWindow.h
@@ -32,9 +32,13 @@
#include <QTabWidget>
#ifdef COMPILE_WEBKIT_SUPPORT
-#include <QtWebKit/QWebView>
+ #if (QT_VERSION < 0x050000)
+ #include <QtWebKit/QWebView>
+ #else
+ #include <QtWebKitWidgets/QWebView>
+ #endif
#else
-class QTextBrowser;
+ class QTextBrowser;
#endif
#include <QLineEdit>