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

List:       kde-commits
Subject:    KDE/kdepim/mobile
From:       Sergio Luis Martins <iamsergio () gmail ! com>
Date:       2010-11-18 20:45:30
Message-ID: 20101118204530.A75DCAC8A0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1198539 by smartins:

Two fixes for some crazy randomness in the task list:

- The percentComplete property is initialy binded to model.percentComplete, but then \
looses this binding when there's a mouse release, so after handling the mouse \
release, we must re-bind.

- We are not interested in all onPercentCompleteChanged events, only on those coming \
from the mouse release event

BUG: 254163

 M  +3 -0      lib/CompletionSlider.qml  
 M  +2 -1      tasks/TaskListView.qml  


--- trunk/KDE/kdepim/mobile/lib/CompletionSlider.qml #1198538:1198539
@@ -47,8 +47,11 @@
       drag.maximumX: width - 6
       onReleased : {
         percentComplete = ((parent.x - 3)/(root.width - width - 6)) * 100
+        root.percentageUpdated();
       }
     }
   }
 
+  signal percentageUpdated();
+
 }
--- trunk/KDE/kdepim/mobile/tasks/TaskListView.qml #1198538:1198539
@@ -69,8 +69,9 @@
           anchors.top: parent.top
           anchors.right: parent.right
           percentComplete : model.percentComplete
-          onPercentCompleteChanged : {
+          onPercentageUpdated : {
             application.setPercentComplete(model.index, percentComplete);
+            percentComplete : model.percentComplete
           }
         },
         QML.Image {


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

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