blob: 011c7616465dd691521a5eb5d2f54fef6edcbfb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
import QtQuick 2.0
import "../../Components"
import "../../Layouts"
Item {
anchors.fill: parent
id: keyboard_search
states: [
State {
name: 'city'
PropertyChanges {target: text_entry; autocompleteModel: citySuggestions}
},
State {
name: 'street'
PropertyChanges {target: text_entry; autocompleteModel: streetSuggestions}
},
State {
name: 'door'
PropertyChanges {target: text_entry; autocompleteModel: undefined}
},
State {
name: 'review'
PropertyChanges {target: text_entry; visible: false}
PropertyChanges {target: review; visible: true}
}
]
Column {
id: review
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
width: 500
visible: false
Button {
text: stateSuggestions.selected
width: parent.width
onPress: keyboard_search.state = ""
}
Button {
text: citySuggestions.selected
width: parent.width
onPress: keyboard_search.state = "city"
}
Button {
text: streetSuggestions.selected
width: parent.width
onPress: keyboard_search.state = "city"
}
Button {
id: doornumber
width: parent.width
onPress: keyboard_search.state = "door"
}
Button {
text: "Begin navigation"
anchors.horizontalCenter: parent.horizontalCenter
onPress: {
section.state = 'map';
}
}
}
}
|