summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-03-12 11:27:21 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-03-12 11:27:21 +0100
commit82d25e003fbb27d42197ec69d28a7948068f3062 (patch)
treecd9e21c53f1441fe481cf3c62979984fe4167c49
parentf406183cfed62ce6311cc949fe06b7e7a479ec84 (diff)
downloadqutebrowser-82d25e003fbb27d42197ec69d28a7948068f3062.tar.gz
qutebrowser-82d25e003fbb27d42197ec69d28a7948068f3062.zip
Set hint label text format explicitly
Fixes #6267
-rw-r--r--doc/changelog.asciidoc3
-rw-r--r--qutebrowser/browser/hints.py2
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..