diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-09-07 21:08:48 +0200 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-09-25 14:23:06 +0000 |
commit | 7fafeb4a3464f8f5dfaef77d2a0c9544c4600192 (patch) | |
tree | 7db1d3b1d247e08f1155e6c49a005b647c5a1ebe /examples/qpa | |
parent | d0c159c8e306709629e3af0b83b464c5cea15754 (diff) |
QTreeView: sync keyboard search behavior with other itemviews
QTreeView has a special implementation of keyboardSearch() which is not
consistent to the base implementation regarding the selection behavior:
- currentSelectionStartIndex is not set which results in a wrong
mouse selection behavior afterwards
- only the current index is set but not the current selection
Sync the behavior by calling setCurrentIndex() directly in QTreeView
too.
One problem remains with this patch - the key handling is still
different between QAbstractItemView and QTreeView for repeating key
presses.
Task-number: QTBUG-18862
Change-Id: Ife79d146cf16d6ecbf9f86540777dae15aa1ffb0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'examples/qpa')
0 files changed, 0 insertions, 0 deletions