Skip to content

Commit 38f6ace

Browse files
committed
make webkit optional
1 parent ed1235d commit 38f6ace

8 files changed

+22
-17
lines changed

CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,12 @@ IF (POSTGRES_FOUND)
238238
SET (HAVE_POSTGRESQL TRUE)
239239
ENDIF (POSTGRES_FOUND)
240240

241-
SET (WITH_QTWEBKIT TRUE CACHE INTERNAL "Enable QtWebkit support")
241+
SET (WITH_QTWEBKIT TRUE CACHE BOOL "Enable QtWebkit support")
242242
IF (WITH_QTWEBKIT)
243243
ADD_DEFINITIONS(-DWITH_QTWEBKIT)
244+
MESSAGE(STATUS "Qt WebKit support enabled")
245+
ELSE (WITH_QTWEBKIT)
246+
MESSAGE(STATUS "Qt WebKit support DISABLED.")
244247
ENDIF(WITH_QTWEBKIT)
245248
#############################################################
246249
# search for Qt4

debian/control.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Build-Depends:
2828
libqt4-opengl-dev,
2929
libqca2-dev,
3030
libqca2-plugin-ossl,
31-
libqtwebkit-dev,
31+
#wheezy jessie precise trusty utopic vivid wily# libqtwebkit-dev,
3232
#stretch jessie wheezy# libqwt-dev,
3333
#precise trusty wily xenial sid# libqwt5-qt4-dev,
3434
libspatialite-dev,

debian/rules

+3-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ ifneq (,$(findstring $(DISTRIBUTION),"wheezy precise"))
117117
endif
118118

119119
ifneq (,$(findstring $(DISTRIBUTION),"sid stretch"))
120-
CMAKE_OPTS += -DPOSTGRES_LIBRARY=/usr/lib/$(DEB_BUILD_MULTIARCH)/libpq.so
120+
CMAKE_OPTS += \
121+
-DPOSTGRES_LIBRARY=/usr/lib/$(DEB_BUILD_MULTIARCH)/libpq.so \
122+
-DWITH_QTWEBKIT=FALSE
121123
endif
122124

123125
ifneq (,$(findstring $(DISTRIBUTION),"sid"))

python/plugins/processing/modeler/ModelerParametersDialog.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
from qgis.PyQt.QtCore import Qt, QUrl, QMetaObject
2929
from qgis.PyQt.QtWidgets import QDialog, QDialogButtonBox, QLabel, QLineEdit, QFrame, QPushButton, QSizePolicy, QVBoxLayout, QHBoxLayout, QTabWidget, QWidget, QScrollArea, QComboBox, QTableWidgetItem, QMessageBox
30-
from qgis.PyQt.QtWebKitWidgets import QWebView
30+
from qgis.core import QgsWebView
3131

3232
from processing.gui.CrsSelectionPanel import CrsSelectionPanel
3333
from processing.gui.MultipleInputPanel import MultipleInputPanel
@@ -194,7 +194,7 @@ def setupUi(self):
194194
self.scrollArea.setWidget(self.paramPanel)
195195
self.scrollArea.setWidgetResizable(True)
196196
self.tabWidget.addTab(self.scrollArea, self.tr('Parameters'))
197-
self.webView = QWebView()
197+
self.webView = QgsWebView()
198198

199199
html = None
200200
url = None

python/plugins/processing/ui/DlgAlgorithmBase.ui

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<number>0</number>
7070
</property>
7171
<item>
72-
<widget class="QWebView" name="textHelp">
72+
<widget class="QgsWebView" name="textHelp">
7373
<property name="url">
7474
<url>
7575
<string>about:blank</string>
@@ -133,9 +133,9 @@
133133
</widget>
134134
<customwidgets>
135135
<customwidget>
136-
<class>QWebView</class>
136+
<class>QgsWebView</class>
137137
<extends>QWidget</extends>
138-
<header>QtWebKit/QWebView</header>
138+
<header>qgis.core</header>
139139
</customwidget>
140140
</customwidgets>
141141
<resources/>

python/plugins/processing/ui/DlgGetScriptsAndModels.ui

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<number>0</number>
7575
</property>
7676
<item>
77-
<widget class="QWebView" name="webView">
77+
<widget class="QgsWebView" name="webView">
7878
<property name="maximumSize">
7979
<size>
8080
<width>10000</width>
@@ -144,9 +144,9 @@
144144
</widget>
145145
<customwidgets>
146146
<customwidget>
147-
<class>QWebView</class>
147+
<class>QgsWebView</class>
148148
<extends>QWidget</extends>
149-
<header>QtWebKit/QWebView</header>
149+
<header>qgis.core</header>
150150
</customwidget>
151151
</customwidgets>
152152
<resources/>

python/plugins/processing/ui/DlgHelpEdition.ui

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<property name="orientation">
2626
<enum>Qt::Vertical</enum>
2727
</property>
28-
<widget class="QWebView" name="webView">
28+
<widget class="QgsWebView" name="webView">
2929
<property name="url">
3030
<url>
3131
<string>about:blank</string>
@@ -112,9 +112,9 @@
112112
</widget>
113113
<customwidgets>
114114
<customwidget>
115-
<class>QWebView</class>
115+
<class>QgsWebView</class>
116116
<extends>QWidget</extends>
117-
<header>QtWebKit/QWebView</header>
117+
<header>qgis.core</header>
118118
</customwidget>
119119
</customwidgets>
120120
<resources/>

python/plugins/processing/ui/DlgResults.ui

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</property>
4242
</column>
4343
</widget>
44-
<widget class="QWebView" name="webView">
44+
<widget class="QgsWebView" name="webView">
4545
<property name="minimumSize">
4646
<size>
4747
<width>0</width>
@@ -70,9 +70,9 @@
7070
</widget>
7171
<customwidgets>
7272
<customwidget>
73-
<class>QWebView</class>
73+
<class>QgsWebView</class>
7474
<extends>QWidget</extends>
75-
<header>QtWebKit/QWebView</header>
75+
<header>qgis.core</header>
7676
</customwidget>
7777
</customwidgets>
7878
<resources/>

0 commit comments

Comments
 (0)