summaryrefslogtreecommitdiff
path: root/navit/gui/qml/skins/navit/ListSelector.qml
diff options
context:
space:
mode:
Diffstat (limited to 'navit/gui/qml/skins/navit/ListSelector.qml')
-rw-r--r--navit/gui/qml/skins/navit/ListSelector.qml49
1 files changed, 0 insertions, 49 deletions
diff --git a/navit/gui/qml/skins/navit/ListSelector.qml b/navit/gui/qml/skins/navit/ListSelector.qml
deleted file mode 100644
index 09c927cf1..000000000
--- a/navit/gui/qml/skins/navit/ListSelector.qml
+++ /dev/null
@@ -1,49 +0,0 @@
-import Qt 4.7
-
-Rectangle {
- id: listselector
- width: parent.width; height: parent.height
- color: "Black"
-
-
- property string text: "ListSelector"
- property string value: ""
- property int itemId: 0
- property bool showScroller: false
- signal changed
-
- function startup() {
- if (listselector.showScroller == true) {
- listScroller.opacity=0.5;
- }
- }
-
- Component.onCompleted: startup();
-
- Text {
- id: labelTxt; text: listselector.text; color: "White"; font.pointSize: 22;
- anchors.horizontalCenter: list.horizontalCenter
- anchors.verticalCenter: listselector.top
- }
-
- ListView {
- id: list;
- width: listselector.width*0.8; height: listselector.height
- anchors.top: labelTxt.bottom;
- anchors.left: listselector.left
- model: listModel
- delegate: listDelegate
- highlight: listHighlight
- clip: true
- highlightFollowsCurrentItem: true
- keyNavigationWraps: true
-
- Component.onCompleted: { list.currentIndex=listselector.itemId; }
- }
- Rectangle {
- id: listScroller
- 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
- }
-}