More logic to edit the song metadata
[mussorgsky] / ui / SongsPage.qml
index 795bd74..4dcb63b 100644 (file)
@@ -5,7 +5,7 @@ import "UIConstantsExtras.js" as UiConstantsExtras
 
 Page {
     id: songsPage
-    tools: commonTools
+    anchors.fill: parent
 
     ListView {
         id: listView
@@ -13,7 +13,7 @@ Page {
         anchors.leftMargin: 6
         anchors.rightMargin: 6
         model: songModel
-        pressDelay: 140
+        //pressDelay: 140
 
         delegate:  Item {
             id: listItem
@@ -24,8 +24,8 @@ Page {
                 id: background
                 anchors.fill: parent
                 // Fill page porders
-                anchors.leftMargin: -songsPage.anchors.leftMargin
-                anchors.rightMargin: -songsPage.anchors.rightMargin
+                //anchors.leftMargin: listItem.leftMargin
+                //anchors.rightMargin: listItem.rightMargin
                 visible: mouseArea.pressed
                 source: "image://theme/meegotouch-list-background-pressed-center"
             }
@@ -65,12 +65,16 @@ Page {
 
             MouseArea {
                 id: mouseArea
-                anchors.fill: background
+                anchors.fill: listItem
                 onClicked: {
                     console.log ("Well, well, well")
+                    editionSheet.song = model.song
+                    editionSheet.open ()
                 }
             }
         }
     }
 
+    SongEditor { id: editionSheet ; visualParent: songsPage }
+
 }