diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2011-08-24 16:44:37 +1000 |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2011-08-25 01:50:58 +0200 |
commit | 2edc2384a0f13089fae48eef511f19fafb6aa795 (patch) | |
tree | f70088ac8031019855ed21a25fa04a665e86e58f /examples | |
parent | 631783858474a28a219bcdd704efad5ef72d0f34 (diff) | |
download | qtlocation-2edc2384a0f13089fae48eef511f19fafb6aa795.tar.gz |
Remove Review element.
Expose as roles in the review model.
Change-Id: Ief401d3639c457b9f65166b76be3df54216cf299
Reviewed-on: http://codereview.qt.nokia.com/3455
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: abcd <qt_abcd1@ovi.com>
Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/qmlplaces/ReviewDelegate.qml | 10 | ||||
-rw-r--r-- | examples/declarative/qmlplaces/qmlplaces.qml | 4 |
2 files changed, 5 insertions, 9 deletions
diff --git a/examples/declarative/qmlplaces/ReviewDelegate.qml b/examples/declarative/qmlplaces/ReviewDelegate.qml index d85433e2..4974e6c9 100644 --- a/examples/declarative/qmlplaces/ReviewDelegate.qml +++ b/examples/declarative/qmlplaces/ReviewDelegate.qml @@ -2,8 +2,6 @@ import QtQuick 2.0 import Qt.location 5.0 Rectangle { - property Review review - height: childrenRect.height + 10 width: parent.width @@ -21,23 +19,23 @@ Rectangle { spacing: 5 Text { - text: review.title + text: title font.pixelSize: 16 font.bold: true width: parent.width } RatingView { - rating: review.rating + rating: model.rating size: 16 } Text { - text: Qt.formatDate(review.date, "d MMMM yyyy") + text: Qt.formatDate(date, "d MMMM yyyy") } Text { - text: review.description + text: description wrapMode: Text.WordWrap width: parent.width } diff --git a/examples/declarative/qmlplaces/qmlplaces.qml b/examples/declarative/qmlplaces/qmlplaces.qml index 2e4f501d..e8509cbc 100644 --- a/examples/declarative/qmlplaces/qmlplaces.qml +++ b/examples/declarative/qmlplaces/qmlplaces.qml @@ -82,9 +82,7 @@ Rectangle { snapMode: ListView.SnapToItem visible: model != undefined - delegate: ReviewDelegate { - review: model.review - } + delegate: ReviewDelegate { } } ListView { |