From 44ce804bdf5a104e37128152955861c87a603369 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 13 Apr 2014 23:06:41 +0200 Subject: [PATCH] Highlight all rows in completion --- qutebrowser/widgets/completion.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qutebrowser/widgets/completion.py b/qutebrowser/widgets/completion.py index 099999ef9..f1bb22cbe 100644 --- a/qutebrowser/widgets/completion.py +++ b/qutebrowser/widgets/completion.py @@ -97,8 +97,6 @@ class CompletionView(QTreeView): """ # FIXME because we use :has-children, if a category is empty, it won't look # like one anymore - # FIXME somehow only the first column is yellow, even with - # setAllColumnsShowFocus change_completed_part = pyqtSignal(str) def __init__(self, parent=None): @@ -269,7 +267,8 @@ class CompletionView(QTreeView): return idx = self._next_idx(shift) self.selectionModel().setCurrentIndex( - idx, QItemSelectionModel.ClearAndSelect) + idx, QItemSelectionModel.ClearAndSelect | + QItemSelectionModel.Rows ) data = self._model.data(idx) if data is not None: self._ignore_next = True