summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2012-02-01 13:19:39 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-02 02:42:16 +0100
commit9999e5d5ca708deeba69a08845d4b3ef56e93ad7 (patch)
treef2399eeb5215409a62bc56d6c3f40e705b86a251 /examples
parentba8f2dfafec4b11c61f3725dcc85da32bfa7ec04 (diff)
downloadqtlocation-9999e5d5ca708deeba69a08845d4b3ef56e93ad7.tar.gz
Set item z-order in relation to the backgroundRect.
Use the backgroundRect as the base instead of the map which may not always be available. Change-Id: I502709ce5de45408afc115df10d6bd2302169043 Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com> Reviewed-by: abcd <amos.choy@nokia.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/places/places.qml18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/declarative/places/places.qml b/examples/declarative/places/places.qml
index 6e1d3217..e609c775 100644
--- a/examples/declarative/places/places.qml
+++ b/examples/declarative/places/places.qml
@@ -59,7 +59,7 @@ Item {
id: backgroundRect
anchors.fill: parent
color: "lightgrey"
- z:2
+ z: 2
}
//=====================Menu=====================
@@ -154,7 +154,7 @@ Item {
//=====================Dialogs=====================
PlaceDialog {
id: editPlaceDialog
- z: backgroundRect.z + 3
+ z: backgroundRect.z + 4
onCancelButtonClicked: page.state = ""
@@ -181,7 +181,7 @@ Item {
CategoryDialog {
id: editCategoryDialog
- z: backgroundRect.z + 3
+ z: backgroundRect.z + 4
onCancelButtonClicked: page.state = ""
@@ -208,7 +208,7 @@ Item {
Dialog {
id: searchCenterDialog
- z: backgroundRect.z + 3
+ z: backgroundRect.z + 4
title: "Search center"
@@ -240,7 +240,7 @@ Item {
Dialog {
id: searchBoxDialog
- z: backgroundRect.z + 3
+ z: backgroundRect.z + 4
title: "Search Bounding Box"
@@ -286,7 +286,7 @@ Item {
Dialog {
id: searchCircleDialog
- z: backgroundRect.z + 3
+ z: backgroundRect.z + 4
title: "Search Bounding Circle"
@@ -330,7 +330,7 @@ Item {
OptionsDialog {
id: optionsDialog
- z: backgroundRect.z + 3
+ z: backgroundRect.z + 4
Behavior on opacity { NumberAnimation { duration: 500 } }
@@ -423,7 +423,7 @@ Item {
anchors.top: page.top
anchors.topMargin: page.mobileUi ? 20 : 0
width: parent.width
- z: map ? map.z + 2 : 0
+ z: backgroundRect.z + 3
}
Plugin {
@@ -436,7 +436,7 @@ Item {
Item {
id: searchResultTab
- z: map ? map.z + 1 : 0
+ z: backgroundRect.z + 2
height: parent.height - 180
width: parent.width
x: -5 - searchResultTabPage.width