[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: remove qml
From:       Shaun Reich <shaun.reich () kdemail ! net>
Date:       2012-02-11 0:58:06
Message-ID: 20120211005806.B40EAA60C6 () git ! kde ! org
[Download RAW message or body]

Git commit 20404da165f29b31ad7b5c46e2628d37e9433102 by Shaun Reich.
Committed on 11/02/2012 at 01:56.
Pushed by sreich into branch 'plasma/sreich/tasks-qml'.

remove qml mentions of model, for now debugging

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

http://commits.kde.org/kde-workspace/20404da165f29b31ad7b5c46e2628d37e9433102

diff --git a/plasma/desktop/applets/tasks/package/contents/ui/main.qml \
b/plasma/desktop/applets/tasks/package/contents/ui/main.qml index fbba026..2bee91e \
                100644
--- a/plasma/desktop/applets/tasks/package/contents/ui/main.qml
+++ b/plasma/desktop/applets/tasks/package/contents/ui/main.qml
@@ -53,7 +53,7 @@ Item {
 
         anchors.fill: parent
 
-        model: tasksModel
+//        model: tasksModel
         delegate: tasksDelegate
 
         cellWidth: 300; cellHeight: 30
@@ -66,16 +66,16 @@ Item {
         MouseArea {
             property string currentId: "-1"                       // Original \
                position in model
             property int newIndex                            // Current Position in \
                model
-            property int index: tasksGrid.indexAt(mouseX, mouseY) // Item underneath \
cursor +            property int index: 1 //HACK: tasksGrid.indexAt(mouseX, mouseY) \
// Item underneath cursor  id: loc
             anchors.fill: parent
-            onPressAndHold: currentId =tasksModel.get(1).name \
//tasksModel.get(newIndex = index).gridId. +           // onPressAndHold: currentId \
=tasksModel.get(1).name //tasksModel.get(newIndex = index).gridId.  onReleased: \
currentId = -1  onMousePositionChanged:
             if (loc.currentId != "-1" && index != -1 && index != newIndex) {
                 
                 console.log("DEBUG" + "newindex: " + newIndex + " INDEX: " + index)
-                tasksModel.move(0 , 1, 1)//newIndex, newIndex = index, 1)
+            //    tasksModel.move(0 , 1, 1)//newIndex, newIndex = index, 1)
             }
         }
     }


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

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