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

List:       kde-commits
Subject:    [kde-workspace/plasma/sreich/sal-qml] plasma/netbook/containments/sal/package/contents/ui: mark the
From:       Shaun Reich <shaun.reich () kdemail ! net>
Date:       2012-05-05 0:46:51
Message-ID: 20120505004651.A82E0A60A9 () git ! kde ! org
[Download RAW message or body]

Git commit d071b57eb56a941fb2b3bc4c740ff4c32766141d by Shaun Reich.
Committed on 05/05/2012 at 02:45.
Pushed by sreich into branch 'plasma/sreich/sal-qml'.

mark the Result as exited when the result's favorite icon is exited

this fixes the "tooltip stays alive even though the user closed sal" or
what have you. also fixes the hover highlight remaining even though the
user did actually leave the area, except she made the "mistake" of
leaving it through the favorite's mouse hit rect

M  +10   -5    plasma/netbook/containments/sal/package/contents/ui/ResultsView.qml

http://commits.kde.org/kde-workspace/d071b57eb56a941fb2b3bc4c740ff4c32766141d

diff --git a/plasma/netbook/containments/sal/package/contents/ui/ResultsView.qml \
b/plasma/netbook/containments/sal/package/contents/ui/ResultsView.qml index \
                5b754b7..1e2c800 100644
--- a/plasma/netbook/containments/sal/package/contents/ui/ResultsView.qml
+++ b/plasma/netbook/containments/sal/package/contents/ui/ResultsView.qml
@@ -120,11 +120,7 @@ Item {
                 }
 
                 onExited: {
-                    tooltipShowTimer.restart()
-                    tooltipShowTimer.running = false
-
-                    tooltipDialog.visible = false
-                    gridView.currentIndex = -1
+                    resultExited();
                 }
 
                 onClicked: {
@@ -142,6 +138,14 @@ Item {
                 gridView.currentIndex = index
             }
 
+            function resultExited() {
+                tooltipShowTimer.restart()
+                tooltipShowTimer.running = false
+
+                tooltipDialog.visible = false
+                gridView.currentIndex = -1
+            }
+
             Timer {
                 id: tooltipShowTimer
 
@@ -180,6 +184,7 @@ Item {
 
                 onExited: {
                     result.favoriteIcon.opacity = 0
+                    resultExited();
                 }
             }
         }


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

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