s/BrowserTab/WebView/g

This commit is contained in:
Florian Bruhin 2014-04-25 12:24:26 +02:00
parent 6e78f67a81
commit 875666265b
3 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@ from functools import partial
from PyQt5.QtCore import QObject
from qutebrowser.utils.signals import dbg_signal
from qutebrowser.widgets.browsertab import BrowserTab
from qutebrowser.widgets.webview import WebView
class SignalFilter(QObject):
@ -76,7 +76,7 @@ class SignalFilter(QObject):
if log_signal:
logging.debug('signal {} (tab {})'.format(
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...
logging.warn('Got signal {} by {} which is no tab!'.format(
dbg_signal(signal, args), sender))

View File

@ -29,7 +29,7 @@ import qutebrowser.utils.message as message
import qutebrowser.config.config as config
import qutebrowser.commands.utils as cmdutils
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.curcommand import CurCommandDispatcher
@ -217,7 +217,7 @@ class TabbedBrowser(TabWidget):
"""
logging.debug("Opening {}".format(url))
url = urlutils.qurl(url)
tab = BrowserTab(self)
tab = WebView(self)
self._connect_tab_signals(tab)
self._tabs.append(tab)
self.addTab(tab, urlutils.urlstring(url))

View File

@ -36,7 +36,7 @@ from qutebrowser.utils.signals import SignalCache
from qutebrowser.utils.usertypes import NeighborList
class BrowserTab(QWebView):
class WebView(QWebView):
"""One browser tab in TabbedBrowser.