[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kde-workspace] plasma/generic/applets/devicenotifier/package/contents/ui: use a
From:       Marco Martin <notmart () gmail ! com>
Date:       2012-12-04 11:46:07
Message-ID: 20121204114607.CAED9A6091 () git ! kde ! org
[Download RAW message or body]

Git commit aba91369289d53426d6a3a6a3d69baf741c19d5f by Marco Martin.
Committed on 04/12/2012 at 12:45.
Pushed by mart into branch 'master'.

use a MouseEventListener for highlight of action

M  +10   -4    plasma/generic/applets/devicenotifier/package/contents/ui/De=
viceItem.qml

http://commits.kde.org/kde-workspace/aba91369289d53426d6a3a6a3d69baf741c19d=
5f

diff --git a/plasma/generic/applets/devicenotifier/package/contents/ui/Devi=
ceItem.qml b/plasma/generic/applets/devicenotifier/package/contents/ui/Devi=
ceItem.qml
index 3635d8e..8b77217 100644
--- a/plasma/generic/applets/devicenotifier/package/contents/ui/DeviceItem.=
qml
+++ b/plasma/generic/applets/devicenotifier/package/contents/ui/DeviceItem.=
qml
@@ -190,15 +190,21 @@ Item {
             subText: i18nc("@info:status Free disk space", "%1 free", sdSo=
urce.data[udi]["Free Space Text"])
         }
 =

-        PlasmaCore.IconItem {
-            id: leftAction
+        MouseEventListener {
+            id: leftActionArea
             width: theme.iconSizes.dialog*0.8
             height: width
+            hoverEnabled: true
             anchors {
                 right: parent.right
                 verticalCenter: deviceIcon.verticalCenter
             }
-            visible: !busySpinner.visible
+            PlasmaCore.IconItem {
+                id: leftAction
+                anchors.fill: parent
+                active: leftActionArea.containsMouse
+                visible: !busySpinner.visible
+            }
         }
 =

         PlasmaCore.ToolTip {
@@ -256,7 +262,7 @@ Item {
             anchors {
                 top: labelsColumn.bottom
                 left: deviceIcon.right
-                right: leftAction.right
+                right: leftActionArea.right
             }
             interactive: false
             model: hpSource.data[udi]["actions"]
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic