diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-08-19 06:34:44 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-08-19 08:15:20 (GMT) |
commit | 21e87b18698c50bcfe0800509563e71c79aae0bb (patch) | |
tree | 4567cb8a5bd3127fe98d7ce5a5042550bca48b7b /examples/declarative/listview | |
parent | 51555ed45f6397fa7cdfae771ee6275733bce615 (diff) | |
download | Qt-21e87b18698c50bcfe0800509563e71c79aae0bb.zip Qt-21e87b18698c50bcfe0800509563e71c79aae0bb.tar.gz Qt-21e87b18698c50bcfe0800509563e71c79aae0bb.tar.bz2 |
Renaming Rect -> Rectangle
Diffstat (limited to 'examples/declarative/listview')
-rw-r--r-- | examples/declarative/listview/highlight.qml | 4 | ||||
-rw-r--r-- | examples/declarative/listview/itemlist.qml | 12 | ||||
-rw-r--r-- | examples/declarative/listview/listview.qml | 6 | ||||
-rw-r--r-- | examples/declarative/listview/recipes.qml | 4 | ||||
-rw-r--r-- | examples/declarative/listview/sections.qml | 6 |
5 files changed, 16 insertions, 16 deletions
diff --git a/examples/declarative/listview/highlight.qml b/examples/declarative/listview/highlight.qml index ea9feb0..b1cd6be 100644 --- a/examples/declarative/listview/highlight.qml +++ b/examples/declarative/listview/highlight.qml @@ -1,6 +1,6 @@ import Qt 4.6 -Rect { +Rectangle { width: 400; height: 300; color: "white" // MyPets model is defined in dummydata/MyPetsModel.qml @@ -42,7 +42,7 @@ Rect { // highlight moves to the current item. Component { id: PetHighlight - Rect { + Rectangle { width: 200; height: 50; color: "#FFFF88" y: Follow { source: List1.current.y; spring: 3; damping: 0.1 } } diff --git a/examples/declarative/listview/itemlist.qml b/examples/declarative/listview/itemlist.qml index 4b81614..bf1184f 100644 --- a/examples/declarative/listview/itemlist.qml +++ b/examples/declarative/listview/itemlist.qml @@ -3,22 +3,22 @@ import Qt 4.6 -Rect { +Rectangle { color: "lightgray" width: 240 height: 320 VisualItemModel { id: ItemModel - Rect { + Rectangle { height: View.height; width: View.width; color: "#FFFEF0" Text { text: "Page 1"; font.bold: true; anchors.centerIn: parent } } - Rect { + Rectangle { height: View.height; width: View.width; color: "#F0FFF7" Text { text: "Page 2"; font.bold: true; anchors.centerIn: parent } } - Rect { + Rectangle { height: View.height; width: View.width; color: "#F4F0FF" Text { text: "Page 3"; font.bold: true; anchors.centerIn: parent } } @@ -33,7 +33,7 @@ Rect { orientation: "Horizontal" } - Rect { + Rectangle { color: "gray" anchors.top: View.bottom anchors.bottom: parent.bottom @@ -45,7 +45,7 @@ Rect { spacing: 20 Repeater { dataSource: ItemModel.count - Rect { + Rectangle { width: 5; height: 5 radius: 3 MouseRegion { width: 20; height: 20; anchors.centerIn: parent; onClicked: View.currentIndex = index } diff --git a/examples/declarative/listview/listview.qml b/examples/declarative/listview/listview.qml index 6b8d3d6..1e2de65 100644 --- a/examples/declarative/listview/listview.qml +++ b/examples/declarative/listview/listview.qml @@ -1,6 +1,6 @@ import Qt 4.6 -Rect { +Rectangle { width: 600; height: 300; color: "white" // MyPets model is defined in dummydata/MyPetsModel.qml @@ -26,7 +26,7 @@ Rect { // by each ListView and placed behind the current item. Component { id: PetHighlight - Rect { color: "#FFFF88" } + Rectangle { color: "#FFFF88" } } // Show the model in three lists, with different currentItemPositioning. @@ -73,7 +73,7 @@ Rect { // the item under the highlight will always be the current item. // Note that we specify the 'children' property. This is because // the default property of a ListView is 'delegate'. - Rect { + Rectangle { y: 125; width: 200; height: 50 color: "#FFFF88"; z: -1 } diff --git a/examples/declarative/listview/recipes.qml b/examples/declarative/listview/recipes.qml index b2c17af..34cdee5 100644 --- a/examples/declarative/listview/recipes.qml +++ b/examples/declarative/listview/recipes.qml @@ -2,7 +2,7 @@ import Qt 4.6 import "content" // This example illustrates expanding a list item to show a more detailed view -Rect { +Rectangle { id: page width: 400; height: 240; color: "black" resources: [ @@ -21,7 +21,7 @@ Rect { property real detailsOpacity : 0 // A simple rounded rectangle for the background - Rect { + Rectangle { id: background x: 1; y: 2; width: parent.width-2; height: parent.height-4 color: "#FEFFEE"; border.color: "#FFBE4F"; radius: 5 diff --git a/examples/declarative/listview/sections.qml b/examples/declarative/listview/sections.qml index 41cc2e6..1b51a43 100644 --- a/examples/declarative/listview/sections.qml +++ b/examples/declarative/listview/sections.qml @@ -1,7 +1,7 @@ import Qt 4.6 //! [0] -Rect { +Rectangle { width: 200 height: 240 color: "white" @@ -18,7 +18,7 @@ Rect { width: 200 // My height is the combined height of the description and the section separator height: Separator.height + Desc.height - Rect { + Rectangle { id: Separator color: "lightsteelblue" width: parent.width @@ -50,7 +50,7 @@ Rect { // by each ListView and placed behind the current item. Component { id: PetHighlight - Rect { + Rectangle { color: "#FFFF88" } } |