diff options
author | Natalia Shubina <natalia.shubina@nokia.com> | 2011-06-30 12:14:23 +1000 |
---|---|---|
committer | Natalia Shubina <natalia.shubina@nokia.com> | 2011-06-30 12:14:23 +1000 |
commit | 531a656ad1841c69b4613f27bdea753599b6f710 (patch) | |
tree | b099e0123126b40e93c04c1a95ed6b6e880a2f66 /examples/declarative/mapviewer/RouteDialog.qml | |
parent | 35721609275e38c1d35203cd2c5ee5c2a07f9763 (diff) | |
download | qtlocation-531a656ad1841c69b4613f27bdea753599b6f710.tar.gz |
MOBILITY-2891: markers
Diffstat (limited to 'examples/declarative/mapviewer/RouteDialog.qml')
-rw-r--r-- | examples/declarative/mapviewer/RouteDialog.qml | 39 |
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 () + } } } } |