mypy: Fix new issues in statusbar.url
This commit is contained in:
parent
81d217b193
commit
c2f97cfe9e
|
|
@ -42,17 +42,10 @@ class UrlText(textbase.TextBase):
|
|||
_normal_url_type: The type of the normal URL as a UrlType instance.
|
||||
_hover_url: The URL we're currently hovering over.
|
||||
_ssl_errors: Whether SSL errors occurred while loading.
|
||||
|
||||
Class attributes:
|
||||
_urltype: The URL type to show currently (normal/ok/error/warn/hover).
|
||||
Accessed via the urltype property.
|
||||
|
||||
For some reason we need to have this as class attribute so
|
||||
pyqtProperty works correctly.
|
||||
"""
|
||||
|
||||
_urltype = None
|
||||
|
||||
STYLESHEET = """
|
||||
QLabel#UrlText[urltype="normal"] {
|
||||
color: {{ conf.colors.statusbar.url.fg }};
|
||||
|
|
@ -81,6 +74,7 @@ class UrlText(textbase.TextBase):
|
|||
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
self._urltype = None
|
||||
self.setObjectName(self.__class__.__name__)
|
||||
config.set_register_stylesheet(self)
|
||||
self._hover_url = None
|
||||
|
|
|
|||
Loading…
Reference in New Issue