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

List:       kde-commits
Subject:    [kde-workspace/plasma/sreich/tasks-qml] plasma/desktop/applets/tasks/package/contents/ui: properlly
From:       Shaun Reich <shaun.reich () kdemail ! net>
Date:       2012-02-14 13:18:01
Message-ID: 20120214131801.89B74A60A6 () git ! kde ! org
[Download RAW message or body]

Git commit ac192757e7bf778071361f25f7af4d9ae0f153a1 by Shaun Reich.
Committed on 14/02/2012 at 05:11.
Pushed by sreich into branch 'plasma/sreich/tasks-qml'.

properlly display it if it's minimized (change tasks bg)

M  +33   -30   plasma/desktop/applets/tasks/package/contents/ui/main.qml

http://commits.kde.org/kde-workspace/ac192757e7bf778071361f25f7af4d9ae0f153=
a1

diff --git a/plasma/desktop/applets/tasks/package/contents/ui/main.qml b/pl=
asma/desktop/applets/tasks/package/contents/ui/main.qml
index 85fb847..3ebb968 100644
--- a/plasma/desktop/applets/tasks/package/contents/ui/main.qml
+++ b/plasma/desktop/applets/tasks/package/contents/ui/main.qml
@@ -57,35 +57,7 @@ Item {
     //                PropertyAction { target: wrapper; property: "GridVie=
w.delayRemove"; value: false }
     //            }
     //
-    //            states: [
-    //            State {
-    //                name: "none"
-    //                when: !hovered && !model.minimized
-    //
-    //                PropertyChanges {
-    //                    target: taskBackground
-    //                    prefix: "normal"
-    //                }
-    //            },
-    //            State {
-    //                name: "hovered"
-    //                when: hovered && !model.minimized
-    //
-    //                PropertyChanges {
-    //                    target: taskBackground
-    //                    prefix: "hover"
-    //                }
-    //            },
-    //            State {
-    //                name: "minimized"
-    //                when: model.minimized
-    //
-    //                PropertyChanges {
-    //                    target: taskBackground
-    //                    prefix: "focus"
-    //                }
-    //            }
-    //            ]
+
     //
     //            property bool hovered: false
     //            property ContextMenu contextMenu
@@ -137,6 +109,37 @@ Item {
                 width: taskBackground.width
                 height: taskBackground.height
 =

+                states: [
+
+                    State {
+                        name: "none"
+                        when: !hovered && !model.Minimized
+
+                        PropertyChanges {
+                            target: taskBackground
+                            prefix: "normal"
+                        }
+                    },
+                    State {
+                        name: "hovered"
+                        when: hovered && !model.Minimized
+
+                        PropertyChanges {
+                            target: taskBackground
+                            prefix: "hover"
+                        }
+                    },
+                    State {
+                        name: "minimized"
+                        when: model.Minimized
+
+                        PropertyChanges {
+                            target: taskBackground
+                            prefix: "focus"
+                        }
+                    }
+                ]
+
                 PlasmaCore.FrameSvgItem {
                     id: taskBackground
 =

@@ -155,7 +158,7 @@ Item {
                     }
 =

                     imagePath: "widgets/tasks"
-                    prefix: "normal"
+//                    prefix: model.Minimized ? "normal" : ""
                 }
 =

                 QIconItem {

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

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