This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
+the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
Rectangle {
id: rectangle1
- anchors.fill: parent; anchors.bottomMargin: 0
+ anchors.fill: parent; anchors.bottomMargin: 16
visible: true
opacity:0.9
id: listDelegate
Rectangle {
height:60
+
+ Rectangle {
+ width:rectangle1.width;
+ y:0;
+ x:0
+ height:1
+ border.color: "#b57e8f"
+ }
+
Text {
id: text1
text:name
onSwitched:{
listModel.setProperty(index, "selected", switchedOn);
}
- switchedOn: {
- selected
- }
-
+ switchedOn: selected
anchors.verticalCenter: parent.verticalCenter
}
+
}
+
}
ListModel {
model: listModel
delegate: listDelegate
focus: true
+ ScrollBar{}
}
}
+
ToolBar { id: toolBar; height: 50;
y: screen.height-78
width: parent.width;
}
}
- transitions: [
- Transition { NumberAnimation { properties: "x,y,opacity"; duration: 500; easing.type: Easing.InOutBack } }
- ]
}