s/BrowserTab/WebView/g
This commit is contained in:
parent
6e78f67a81
commit
875666265b
@ -23,7 +23,7 @@ from functools import partial
|
|||||||
from PyQt5.QtCore import QObject
|
from PyQt5.QtCore import QObject
|
||||||
|
|
||||||
from qutebrowser.utils.signals import dbg_signal
|
from qutebrowser.utils.signals import dbg_signal
|
||||||
from qutebrowser.widgets.browsertab import BrowserTab
|
from qutebrowser.widgets.webview import WebView
|
||||||
|
|
||||||
|
|
||||||
class SignalFilter(QObject):
|
class SignalFilter(QObject):
|
||||||
@ -76,7 +76,7 @@ class SignalFilter(QObject):
|
|||||||
if log_signal:
|
if log_signal:
|
||||||
logging.debug('signal {} (tab {})'.format(
|
logging.debug('signal {} (tab {})'.format(
|
||||||
dbg_signal(signal, args), self._tabs.indexOf(sender)))
|
dbg_signal(signal, args), self._tabs.indexOf(sender)))
|
||||||
if not isinstance(sender, BrowserTab):
|
if not isinstance(sender, WebView):
|
||||||
# BUG? This should never happen, but it does regularely...
|
# BUG? This should never happen, but it does regularely...
|
||||||
logging.warn('Got signal {} by {} which is no tab!'.format(
|
logging.warn('Got signal {} by {} which is no tab!'.format(
|
||||||
dbg_signal(signal, args), sender))
|
dbg_signal(signal, args), sender))
|
||||||
|
@ -29,7 +29,7 @@ import qutebrowser.utils.message as message
|
|||||||
import qutebrowser.config.config as config
|
import qutebrowser.config.config as config
|
||||||
import qutebrowser.commands.utils as cmdutils
|
import qutebrowser.commands.utils as cmdutils
|
||||||
from qutebrowser.widgets._tabwidget import TabWidget
|
from qutebrowser.widgets._tabwidget import TabWidget
|
||||||
from qutebrowser.widgets.browsertab import BrowserTab
|
from qutebrowser.widgets.webview import WebView
|
||||||
from qutebrowser.browser.signalfilter import SignalFilter
|
from qutebrowser.browser.signalfilter import SignalFilter
|
||||||
from qutebrowser.browser.curcommand import CurCommandDispatcher
|
from qutebrowser.browser.curcommand import CurCommandDispatcher
|
||||||
|
|
||||||
@ -217,7 +217,7 @@ class TabbedBrowser(TabWidget):
|
|||||||
"""
|
"""
|
||||||
logging.debug("Opening {}".format(url))
|
logging.debug("Opening {}".format(url))
|
||||||
url = urlutils.qurl(url)
|
url = urlutils.qurl(url)
|
||||||
tab = BrowserTab(self)
|
tab = WebView(self)
|
||||||
self._connect_tab_signals(tab)
|
self._connect_tab_signals(tab)
|
||||||
self._tabs.append(tab)
|
self._tabs.append(tab)
|
||||||
self.addTab(tab, urlutils.urlstring(url))
|
self.addTab(tab, urlutils.urlstring(url))
|
||||||
|
@ -36,7 +36,7 @@ from qutebrowser.utils.signals import SignalCache
|
|||||||
from qutebrowser.utils.usertypes import NeighborList
|
from qutebrowser.utils.usertypes import NeighborList
|
||||||
|
|
||||||
|
|
||||||
class BrowserTab(QWebView):
|
class WebView(QWebView):
|
||||||
|
|
||||||
"""One browser tab in TabbedBrowser.
|
"""One browser tab in TabbedBrowser.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user