summaryrefslogtreecommitdiff
path: root/qutebrowser/mainwindow/statusbar/bar.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/mainwindow/statusbar/bar.py')
-rw-r--r--qutebrowser/mainwindow/statusbar/bar.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/qutebrowser/mainwindow/statusbar/bar.py b/qutebrowser/mainwindow/statusbar/bar.py
index ae33a386a..eaf60db3e 100644
--- a/qutebrowser/mainwindow/statusbar/bar.py
+++ b/qutebrowser/mainwindow/statusbar/bar.py
@@ -31,7 +31,7 @@ from qutebrowser.keyinput import modeman
from qutebrowser.utils import usertypes, log, objreg, utils
from qutebrowser.mainwindow.statusbar import (backforward, command, progress,
keystring, percentage, url,
- tabindex, textbase, clock)
+ tabindex, textbase, clock, searchmatch)
@dataclasses.dataclass
@@ -143,6 +143,7 @@ class StatusBar(QWidget):
url: The UrlText widget in the statusbar.
prog: The Progress widget in the statusbar.
cmd: The Command widget in the statusbar.
+ search_match: The SearchMatch widget in the statusbar.
_hbox: The main QHBoxLayout.
_stack: The QStackedLayout with cmd/txt widgets.
_win_id: The window ID the statusbar is associated with.
@@ -193,6 +194,8 @@ class StatusBar(QWidget):
self.cmd.hide_cmd.connect(self._hide_cmd_widget)
self._hide_cmd_widget()
+ self.search_match = searchmatch.SearchMatch()
+
self.url = url.UrlText()
self.percentage = percentage.Percentage()
self.backforward = backforward.Backforward()
@@ -225,6 +228,8 @@ class StatusBar(QWidget):
return self.keystring
elif key == 'progress':
return self.prog
+ elif key == 'search_match':
+ return self.search_match
elif key.startswith('text:'):
new_text_widget = textbase.TextBase()
self._text_widgets.append(new_text_widget)
@@ -243,7 +248,7 @@ class StatusBar(QWidget):
elif option == 'statusbar.widgets':
self._draw_widgets()
- def _draw_widgets(self):
+ def _draw_widgets(self): # noqa: C901
"""Draw statusbar widgets."""
self._clear_widgets()