Commit 78134c26 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Fix mouse interaction with history entries

In case of the history entries we do not have
a ResultView, but rather a normal QML list view.
Consequently special properties/methods do not
exist.

This has the only downside, that one can accidentally
focus one item with the mouse when the user tries to do
a keyboard only interaction. But considering that clearing
specific entries from the history is done rarely and mostly
done by clearing all entries in the KCM this should be acceptable.

BUG: 431010
FIXED-IN: 5.21
parent 8657410f
......@@ -135,7 +135,8 @@ MouseArea {
__pressX = -1;
__pressY = -1;
} else {
if (listView.moved) {
// In case we display the history we have a QML ListView which does not have the moved property
if (!listView.hasOwnProperty("moved") || listView.moved) {
listView.currentIndex = index
} else if (listView.mouseMovedGlobally()) {
listView.moved = true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment