Skip to content

Commit

Permalink
make webkit optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 27, 2016
1 parent ed1235d commit 38f6ace
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 17 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Expand Up @@ -238,9 +238,12 @@ IF (POSTGRES_FOUND)
SET (HAVE_POSTGRESQL TRUE)
ENDIF (POSTGRES_FOUND)

SET (WITH_QTWEBKIT TRUE CACHE INTERNAL "Enable QtWebkit support")
SET (WITH_QTWEBKIT TRUE CACHE BOOL "Enable QtWebkit support")
IF (WITH_QTWEBKIT)
ADD_DEFINITIONS(-DWITH_QTWEBKIT)
MESSAGE(STATUS "Qt WebKit support enabled")
ELSE (WITH_QTWEBKIT)
MESSAGE(STATUS "Qt WebKit support DISABLED.")
ENDIF(WITH_QTWEBKIT)
#############################################################
# search for Qt4
Expand Down
2 changes: 1 addition & 1 deletion debian/control.in
Expand Up @@ -28,7 +28,7 @@ Build-Depends:
libqt4-opengl-dev,
libqca2-dev,
libqca2-plugin-ossl,
libqtwebkit-dev,
#wheezy jessie precise trusty utopic vivid wily# libqtwebkit-dev,
#stretch jessie wheezy# libqwt-dev,
#precise trusty wily xenial sid# libqwt5-qt4-dev,
libspatialite-dev,
Expand Down
4 changes: 3 additions & 1 deletion debian/rules
Expand Up @@ -117,7 +117,9 @@ ifneq (,$(findstring $(DISTRIBUTION),"wheezy precise"))
endif

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

ifneq (,$(findstring $(DISTRIBUTION),"sid"))
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/modeler/ModelerParametersDialog.py
Expand Up @@ -27,7 +27,7 @@

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

from processing.gui.CrsSelectionPanel import CrsSelectionPanel
from processing.gui.MultipleInputPanel import MultipleInputPanel
Expand Down Expand Up @@ -194,7 +194,7 @@ def setupUi(self):
self.scrollArea.setWidget(self.paramPanel)
self.scrollArea.setWidgetResizable(True)
self.tabWidget.addTab(self.scrollArea, self.tr('Parameters'))
self.webView = QWebView()
self.webView = QgsWebView()

html = None
url = None
Expand Down
6 changes: 3 additions & 3 deletions python/plugins/processing/ui/DlgAlgorithmBase.ui
Expand Up @@ -69,7 +69,7 @@
<number>0</number>
</property>
<item>
<widget class="QWebView" name="textHelp">
<widget class="QgsWebView" name="textHelp">
<property name="url">
<url>
<string>about:blank</string>
Expand Down Expand Up @@ -133,9 +133,9 @@
</widget>
<customwidgets>
<customwidget>
<class>QWebView</class>
<class>QgsWebView</class>
<extends>QWidget</extends>
<header>QtWebKit/QWebView</header>
<header>qgis.core</header>
</customwidget>
</customwidgets>
<resources/>
Expand Down
6 changes: 3 additions & 3 deletions python/plugins/processing/ui/DlgGetScriptsAndModels.ui
Expand Up @@ -74,7 +74,7 @@
<number>0</number>
</property>
<item>
<widget class="QWebView" name="webView">
<widget class="QgsWebView" name="webView">
<property name="maximumSize">
<size>
<width>10000</width>
Expand Down Expand Up @@ -144,9 +144,9 @@
</widget>
<customwidgets>
<customwidget>
<class>QWebView</class>
<class>QgsWebView</class>
<extends>QWidget</extends>
<header>QtWebKit/QWebView</header>
<header>qgis.core</header>
</customwidget>
</customwidgets>
<resources/>
Expand Down
6 changes: 3 additions & 3 deletions python/plugins/processing/ui/DlgHelpEdition.ui
Expand Up @@ -25,7 +25,7 @@
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<widget class="QWebView" name="webView">
<widget class="QgsWebView" name="webView">
<property name="url">
<url>
<string>about:blank</string>
Expand Down Expand Up @@ -112,9 +112,9 @@
</widget>
<customwidgets>
<customwidget>
<class>QWebView</class>
<class>QgsWebView</class>
<extends>QWidget</extends>
<header>QtWebKit/QWebView</header>
<header>qgis.core</header>
</customwidget>
</customwidgets>
<resources/>
Expand Down
6 changes: 3 additions & 3 deletions python/plugins/processing/ui/DlgResults.ui
Expand Up @@ -41,7 +41,7 @@
</property>
</column>
</widget>
<widget class="QWebView" name="webView">
<widget class="QgsWebView" name="webView">
<property name="minimumSize">
<size>
<width>0</width>
Expand Down Expand Up @@ -70,9 +70,9 @@
</widget>
<customwidgets>
<customwidget>
<class>QWebView</class>
<class>QgsWebView</class>
<extends>QWidget</extends>
<header>QtWebKit/QWebView</header>
<header>qgis.core</header>
</customwidget>
</customwidgets>
<resources/>
Expand Down

0 comments on commit 38f6ace

Please sign in to comment.