Set Qt.RichText textFormat for KeyHintView
This commit is contained in:
parent
5c8d1656ff
commit
5b65ec17fd
@ -27,7 +27,7 @@ It is intended to help discoverability of keybindings.
|
|||||||
import html
|
import html
|
||||||
|
|
||||||
from PyQt5.QtWidgets import QLabel, QSizePolicy
|
from PyQt5.QtWidgets import QLabel, QSizePolicy
|
||||||
from PyQt5.QtCore import pyqtSlot, pyqtSignal
|
from PyQt5.QtCore import pyqtSlot, pyqtSignal, Qt
|
||||||
|
|
||||||
from qutebrowser.config import config, style
|
from qutebrowser.config import config, style
|
||||||
from qutebrowser.utils import objreg, utils
|
from qutebrowser.utils import objreg, utils
|
||||||
@ -59,6 +59,7 @@ class KeyHintView(QLabel):
|
|||||||
|
|
||||||
def __init__(self, win_id, parent=None):
|
def __init__(self, win_id, parent=None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
|
self.setTextFormat(Qt.RichText)
|
||||||
self._win_id = win_id
|
self._win_id = win_id
|
||||||
self.set_enabled()
|
self.set_enabled()
|
||||||
cfg = objreg.get('config')
|
cfg = objreg.get('config')
|
||||||
|
Loading…
Reference in New Issue
Block a user