Fix main pane highlight
This commit is contained in:
20
src/gui/Base/HSortFilterProxyModel.qml
Normal file
20
src/gui/Base/HSortFilterProxyModel.qml
Normal 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
|
||||
}
|
||||
}
|
@@ -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
|
||||
|
Reference in New Issue
Block a user