Add:gui/qml:Make list's scrollbar switchable
authorakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 13 Apr 2010 14:16:41 +0000 (14:16 +0000)
committerakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 13 Apr 2010 14:16:41 +0000 (14:16 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3168 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/gui/qml/skins/navit/ListSelector.qml

index 97462b4..fc4b959 100644 (file)
@@ -10,11 +10,15 @@ Rectangle {
     property string text: "ListSelector"
     property string value: ""
     property string itemId: "0"
+    property bool showScroller: false
     signal changed
 
     function startup() {
-        console.log("model is: "+listModel);
+        if (listselector.showScroller == true) {
+               listScroller.opacity=0.5;
+       }
     }
+    
     Component.onCompleted: startup();    
 
      Component {
@@ -67,7 +71,7 @@ Rectangle {
          }
         Rectangle {
                         id: listScroller
-               opacity: 0.5; anchors.left: list.right; anchors.leftMargin: 4; width: 6
+               opacity: 0; anchors.left: list.right; anchors.leftMargin: 4; width: 6
                y: (list.visibleArea.yPosition * list.height)+(list.visibleArea.heightRatio * list.height/4)
                height: list.visibleArea.heightRatio * list.height
        }