summaryrefslogtreecommitdiffstats
path: root/examples/declarative/smooth/MyRect.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/smooth/MyRect.qml')
-rw-r--r--examples/declarative/smooth/MyRect.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/declarative/smooth/MyRect.qml b/examples/declarative/smooth/MyRect.qml
new file mode 100644
index 0000000..7791e27
--- /dev/null
+++ b/examples/declarative/smooth/MyRect.qml
@@ -0,0 +1,21 @@
+import Qt 4.6
+
+Item {
+ id: MyRect
+ property string color
+ property string border : ""
+ property int rotation
+ property int radius
+ property int borderWidth
+ property bool smooth: false
+
+ width: 80; height: 80
+ Item {
+ anchors.centerIn: parent; rotation: MyRect.rotation;
+ Rect {
+ anchors.centerIn: parent; width: 80; height: 80
+ color: MyRect.color; border.color: MyRect.border; border.width: MyRect.border != "" ? 2 : 0
+ radius: MyRect.radius; smooth: MyRect.smooth
+ }
+ }
+}