aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/help/help.pro
diff options
context:
space:
mode:
authorEike Ziller <[email protected]>2014-05-14 13:15:01 +0200
committerEike Ziller <[email protected]>2014-05-30 09:37:04 +0200
commitc5be32fae7ac528f4d0c1aa89d2845fb49335141 (patch)
tree117ad4adaefb4cfaadb6dead7009aaf46d086ad5 /src/plugins/help/help.pro
parent62a83b2b3fb2201a72b5d7501a9ad1ea0440a794 (diff)
Help: Provide native WebView backend on Mac
Run Qt Creator with environment variable QTC_HELPVIEWER_BACKEND to * 'native' to get the WebView based one on Mac * 'textbrowser' to get the QTextBrowser based one Defaults to use QWebView if QtWebKit is available, or QTextBrowser if not, like before. Change-Id: If0660782b18ff3d89301fa7bcaf4e2e2fb69627d Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/help/help.pro')
-rw-r--r--src/plugins/help/help.pro9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/help/help.pro b/src/plugins/help/help.pro
index 4fb13c424e7..4236715677d 100644
--- a/src/plugins/help/help.pro
+++ b/src/plugins/help/help.pro
@@ -68,5 +68,14 @@ FORMS += docsettingspage.ui \
generalsettingspage.ui \
remotehelpfilter.ui
+macx:minQtVersion(5, 2, 0) {
+ DEFINES += QTC_MAC_NATIVE_HELPVIEWER
+ QT += macextras
+ HEADERS += macwebkithelpviewer.h
+ OBJECTIVE_SOURCES += macwebkithelpviewer.mm
+
+ LIBS += -framework WebKit -framework AppKit
+}
+
RESOURCES += help.qrc
include(../../shared/help/help.pri)