diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-01 08:24:14 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-01 08:24:14 (GMT) |
commit | afd8fd8cbf0ae3f7d7febc4f4a00628c7bd5c541 (patch) | |
tree | 42e1450324edac2c29eccdb4f3b391c8954b08e9 /examples/declarative/listview | |
parent | f5e2c51efd24445e46c3dcad30e9137b1beecc1d (diff) | |
download | Qt-afd8fd8cbf0ae3f7d7febc4f4a00628c7bd5c541.zip Qt-afd8fd8cbf0ae3f7d7febc4f4a00628c7bd5c541.tar.gz Qt-afd8fd8cbf0ae3f7d7febc4f4a00628c7bd5c541.tar.bz2 |
Use QML properties syntax
Diffstat (limited to 'examples/declarative/listview')
-rw-r--r-- | examples/declarative/listview/content/MediaButton.qml | 5 | ||||
-rw-r--r-- | examples/declarative/listview/recipes.qml | 7 |
2 files changed, 4 insertions, 8 deletions
diff --git a/examples/declarative/listview/content/MediaButton.qml b/examples/declarative/listview/content/MediaButton.qml index bb2510a..7aec2e4 100644 --- a/examples/declarative/listview/content/MediaButton.qml +++ b/examples/declarative/listview/content/MediaButton.qml @@ -1,11 +1,10 @@ Item { + property var text + id: Container signals: Signal { name: "clicked" } - properties: Property { - name: "text" - } Image { id: Image source: "pics/button.png" diff --git a/examples/declarative/listview/recipes.qml b/examples/declarative/listview/recipes.qml index db8604e..8863d1c 100644 --- a/examples/declarative/listview/recipes.qml +++ b/examples/declarative/listview/recipes.qml @@ -18,11 +18,8 @@ Rect { // We can bind multiple element's opacity to this one property, // rather than having a "SetProperty" line for each element we // want to fade. - properties: Property { - name: "detailsOpacity" - value: 0 - type: "real" - } + property real detailsOpacity : 0 + // A simple rounded rectangle for the background Rect { id: background |