svn commit: r472780 - in head/www/qutebrowser: . files
Roman Bogorodskiy
novel at FreeBSD.org
Tue Jun 19 10:18:21 UTC 2018
Author: novel
Date: Tue Jun 19 10:18:19 2018
New Revision: 472780
URL: https://svnweb.freebsd.org/changeset/ports/472780
Log:
www/qutebrowser: add workaround for missing PyQt5.QtQuickWidgets
Currently there's no port that provides PyQt5.QtQuickWidgets which is
used by qutebrowser. It's used only in a single place, so roll back the
commit that added it.
PR: 229123
Reported by: serpent7776 at gmail.com
Added:
head/www/qutebrowser/files/
head/www/qutebrowser/files/patch-qutebrowser_browser_webengine_webview.py (contents, props changed)
Modified:
head/www/qutebrowser/Makefile
Modified: head/www/qutebrowser/Makefile
==============================================================================
--- head/www/qutebrowser/Makefile Tue Jun 19 09:54:47 2018 (r472779)
+++ head/www/qutebrowser/Makefile Tue Jun 19 10:18:19 2018 (r472780)
@@ -2,6 +2,7 @@
PORTNAME= qutebrowser
DISTVERSION= 1.3.2
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= CHEESESHOP
Added: head/www/qutebrowser/files/patch-qutebrowser_browser_webengine_webview.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/qutebrowser/files/patch-qutebrowser_browser_webengine_webview.py Tue Jun 19 10:18:19 2018 (r472780)
@@ -0,0 +1,24 @@
+--- qutebrowser/browser/webengine/webview.py.orig 2018-06-10 13:42:47 UTC
++++ qutebrowser/browser/webengine/webview.py
+@@ -24,7 +24,6 @@ import functools
+ import sip
+ from PyQt5.QtCore import pyqtSignal, pyqtSlot, QUrl, PYQT_VERSION
+ from PyQt5.QtGui import QPalette
+-from PyQt5.QtQuickWidgets import QQuickWidget
+ from PyQt5.QtWebEngineWidgets import (QWebEngineView, QWebEnginePage,
+ QWebEngineScript)
+
+@@ -72,9 +71,10 @@ class WebEngineView(QWebEngineView):
+ if proxy is not None:
+ return proxy
+
+- # This should only find the RenderWidgetHostViewQtDelegateWidget,
+- # but not e.g. a QMenu
+- children = self.findChildren(QQuickWidget)
++ # We don't want e.g. a QMenu.
++ rwhv_class = 'QtWebEngineCore::RenderWidgetHostViewQtDelegateWidget'
++ children = [child for child in self.findChildren(QWidget)
++ if child.inherits(rwhv_class)]
+
+ if not children:
+ return None
More information about the svn-ports-head
mailing list