diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2012-01-17 14:26:26 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-17 05:43:06 +0100 |
commit | 173d46496ded509ac58c83495fd33abc6c24e2c8 (patch) | |
tree | 93764b5746ddc7e7e7dd6c1280a8f04869dae95a | |
parent | 965d68ebddc3e69c7d2489f03adce0593c9acf80 (diff) | |
download | qtlocation-173d46496ded509ac58c83495fd33abc6c24e2c8.tar.gz |
Fix Places example.
Item element changed.
Ensure that the width and height of the top level item is not 0.
Change-Id: Ie6add32b73c6a2fbaf5460db9a69d7f862711479
Reviewed-by: abcd <amos.choy@nokia.com>
-rw-r--r-- | examples/declarative/places/places.qml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/declarative/places/places.qml b/examples/declarative/places/places.qml index 9e5a8ff8..634dc00e 100644 --- a/examples/declarative/places/places.qml +++ b/examples/declarative/places/places.qml @@ -45,8 +45,8 @@ import "content/places" Item { id: page - width: parent ? parent.width : 360 - height: parent ? parent.height : 640 + width: (parent && parent.width > 0) ? parent.width : 360 + height: (parent && parent.height > 0) ? parent.height : 640 property bool mobileUi: true property variant map property variant searchRegion : startLocation @@ -331,8 +331,6 @@ Item { id: optionsDialog z: backgroundRect.z + 3 - title: "Search Options" - Behavior on opacity { NumberAnimation { duration: 500 } } Component.onCompleted: prepareDialog() |