Commit 9564b1fa authored by Aleksei German's avatar Aleksei German

Watch Demo Application List changed to ui.qml

parent 9cce753e
......@@ -40,8 +40,6 @@ Item {
property alias listContainerImplicitHeight: listContainer.implicitHeight
property real othersOp: 0.1
readonly property int defaultIndex: -2
Column {
id: listContainer
height: parent.height
......@@ -49,7 +47,6 @@ Item {
anchors.left: parent.left
anchors.leftMargin: 50
spacing: 5
y: indexToY(defaultIndex)
ApplicationListEntry {
id: tools
......
......@@ -28,11 +28,13 @@ ApplicationList {
signal selected(int app)
index: yToIndex(yScroll)
yScroll: indexToY(defaultIndex)
property bool pressed: false
property bool snapped : false
property bool onScreen: false
property bool offScreen: false
readonly property int defaultIndex: -2
readonly property int introDuration: 200
readonly property int entryHeight: 90
readonly property int entrySpacing: 5
......@@ -66,6 +68,7 @@ ApplicationList {
onOffScreenChanged: {
if (offScreen) {
intro.stop()
root.state = "default"
}
}
......
......@@ -33,7 +33,7 @@ CompassWidget {
if (!visible) {
root.state = "default"
degreeTimer.running = false
degreeTimer.stop()
}
}
......@@ -60,7 +60,7 @@ CompassWidget {
ScriptAction {
script: {
updateAngle()
degreeTimer.running = true
degreeTimer.start()
}
}
PropertyAction { target: root; property: "state"; value: "running" }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment