Fix main pane highlight

This commit is contained in:
miruka
2020-03-10 05:38:28 -04:00
parent 49966e06ad
commit aafbecfdda
11 changed files with 77 additions and 82 deletions

View File

@@ -0,0 +1,20 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
import QtQuick 2.12
import SortFilterProxyModel 0.2
SortFilterProxyModel {
function findIndex(id) {
for (let i = 0; i < count; i++)
if (get(i).id === id) return i
return null
}
function find(id) {
for (let i = 0; i < count; i++)
if (get(i).id === id) return get(i)
return null
}
}

View File

@@ -5,7 +5,6 @@ import QtQuick.Layouts 1.12
HTile {
id: tile
onActivated: view.currentIndex = model.index
onLeftClicked: {
view.highlightRangeMode = ListView.NoHighlightRange
view.highlightMoveDuration = 0