summaryrefslogtreecommitdiff
path: root/examples/declarative/mapviewer/RouteDialog.qml
diff options
context:
space:
mode:
authorNatalia Shubina <natalia.shubina@nokia.com>2011-06-30 12:14:23 +1000
committerNatalia Shubina <natalia.shubina@nokia.com>2011-06-30 12:14:23 +1000
commit531a656ad1841c69b4613f27bdea753599b6f710 (patch)
treeb099e0123126b40e93c04c1a95ed6b6e880a2f66 /examples/declarative/mapviewer/RouteDialog.qml
parent35721609275e38c1d35203cd2c5ee5c2a07f9763 (diff)
downloadqtlocation-531a656ad1841c69b4613f27bdea753599b6f710.tar.gz
MOBILITY-2891: markers
Diffstat (limited to 'examples/declarative/mapviewer/RouteDialog.qml')
-rw-r--r--examples/declarative/mapviewer/RouteDialog.qml39
1 files changed, 32 insertions, 7 deletions
diff --git a/examples/declarative/mapviewer/RouteDialog.qml b/examples/declarative/mapviewer/RouteDialog.qml
index a8cdf3b5..2d675c3e 100644
--- a/examples/declarative/mapviewer/RouteDialog.qml
+++ b/examples/declarative/mapviewer/RouteDialog.qml
@@ -74,7 +74,7 @@ Item {
color: "lightsteelblue"
opacity: 1
width: parent.width - gap*2;
- height: options.height + gap*3 + buttonGo.height + titleBar.height
+ height: options.height + gap*3 + buttons.height + titleBar.height
anchors {
top: parent.top
@@ -366,15 +366,40 @@ Item {
}
}
- Common.Button {
- id: buttonGo
- text: "Go!"
+ Row {
+ id: buttons
anchors.top: options.bottom
anchors.topMargin: gap
- width: 80; height: 32
anchors.horizontalCenter: parent.horizontalCenter
- onClicked: {
- dialog.goButtonClicked ()
+ spacing: gap/3
+ height: 32
+ Common.Button {
+ text: "Clear"
+ width: 80; height: parent.height
+ onClicked: {
+ if (byCoordinates == true){
+ latFrom.text = ""
+ longFrom.text = ""
+ latTo.text = ""
+ longTo.text = ""
+ }
+ else {
+ streetFrom.text = ""
+ cityFrom.text = ""
+ countryFrom.text = ""
+ streetTo.text = ""
+ cityTo.text = ""
+ countryTo.text = ""
+ }
+ }
+ }
+
+ Common.Button {
+ text: "Go!"
+ width: 80; height: parent.height
+ onClicked: {
+ dialog.goButtonClicked ()
+ }
}
}
}