From eadae554b85f2bf268e50ac1d0682f15c4f6652e Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 22 Oct 2012 11:32:02 +0200 Subject: [PATCH] menu items are menu children. now works without packagekit dataengine installed --- declarativeimports/plasmacomponents/qml/Highlight.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/declarativeimports/plasmacomponents/qml/Highlight.qml b/declarativeimports/plasmacomponents/qml/Highlight.qml index d54f07222..b32d65056 100644 --- a/declarativeimports/plasmacomponents/qml/Highlight.qml +++ b/declarativeimports/plasmacomponents/qml/Highlight.qml @@ -47,6 +47,17 @@ Item { property bool hover: ListView ? true : false property bool pressed: false + Connections { + target: highlight.ListView.view + onCurrentIndexChanged: { + if (highlight.ListView.view.currentIndex >= 0) { + background.opacity = 1 + } else { + background.opacity = 0 + } + } + } + PlasmaCore.FrameSvgItem { id: background imagePath: "widgets/viewitem"