diff options
-rw-r--r-- | framework/qml/FolderListView.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/qml/FolderListView.qml b/framework/qml/FolderListView.qml index bf1f52e5..fe91aacc 100644 --- a/framework/qml/FolderListView.qml +++ b/framework/qml/FolderListView.qml | |||
@@ -41,6 +41,8 @@ Kube.TreeView { | |||
41 | title: "Name" | 41 | title: "Name" |
42 | role: "name" | 42 | role: "name" |
43 | delegate: Item { | 43 | delegate: Item { |
44 | id: delegateRoot | ||
45 | property bool isActive: root.activeIndex === root.indexFromRow(styleData.row) | ||
44 | DropArea { | 46 | DropArea { |
45 | anchors.fill: parent | 47 | anchors.fill: parent |
46 | Rectangle { | 48 | Rectangle { |
@@ -64,7 +66,7 @@ Kube.TreeView { | |||
64 | } | 66 | } |
65 | text: styleData.value | 67 | text: styleData.value |
66 | elide: Qt.ElideRight | 68 | elide: Qt.ElideRight |
67 | color: (model.hasNewData && !styleData.selected) ? Kube.Colors.highlightColor : Kube.Colors.viewBackgroundColor | 69 | color: (model.hasNewData && !delegateRoot.isActive) ? Kube.Colors.highlightColor : Kube.Colors.viewBackgroundColor |
68 | } | 70 | } |
69 | } | 71 | } |
70 | } | 72 | } |