Add icon()
This commit is contained in:
parent
4fea285740
commit
7e607a0cf2
@ -186,6 +186,9 @@ class AbstractTab(QWidget):
|
||||
def zoom_factor(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def icon(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def __repr__(self):
|
||||
url = utils.elide(self.cur_url.toDisplayString(QUrl.EncodeUnicode),
|
||||
100)
|
||||
|
@ -121,6 +121,9 @@ class WebEngineViewTab(tab.AbstractTab):
|
||||
def title(self):
|
||||
return self._widget.title()
|
||||
|
||||
def icon(self):
|
||||
return self._widget.icon()
|
||||
|
||||
def _connect_signals(self):
|
||||
view = self._widget
|
||||
page = view.page()
|
||||
|
@ -105,6 +105,9 @@ class WebViewTab(tab.AbstractTab):
|
||||
else:
|
||||
callback(frame.toHtml())
|
||||
|
||||
def icon(self):
|
||||
return self._widget.icon()
|
||||
|
||||
def shutdown(self):
|
||||
self._widget.shutdown()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user