diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-03-12 11:27:21 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-03-12 11:27:21 +0100 |
commit | 82d25e003fbb27d42197ec69d28a7948068f3062 (patch) | |
tree | cd9e21c53f1441fe481cf3c62979984fe4167c49 | |
parent | f406183cfed62ce6311cc949fe06b7e7a479ec84 (diff) | |
download | qutebrowser-82d25e003fbb27d42197ec69d28a7948068f3062.tar.gz qutebrowser-82d25e003fbb27d42197ec69d28a7948068f3062.zip |
Set hint label text format explicitly
Fixes #6267
-rw-r--r-- | doc/changelog.asciidoc | 3 | ||||
-rw-r--r-- | qutebrowser/browser/hints.py | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index 3427a3757..8a48966c6 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -129,6 +129,9 @@ Fixed black. If `content.site_specific_quirks` is enabled, qutebrowser now injects some CSS as a workaround, which inverts all math formula images on Wikipedia (and potentially other sites, if they use the same CSS class). +- When a hint label text started with an apostrophe, it would show an escaped + text until the hints first character has been pressed. It now shows up + correctly. [[v2.0.2]] v2.0.2 (2021-02-04) diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index dd008d9c5..333c532d3 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -92,6 +92,8 @@ class HintLabel(QLabel): self._context = context self.elem = elem + self.setTextFormat(Qt.RichText) + # Make sure we can style the background via a style sheet, and we don't # get any extra text indent from Qt. # The real stylesheet lives in mainwindow.py for performance reasons.. |