summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-11-02 05:43:59 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-11-02 05:43:59 (GMT)
commit8c39a1ad27594e514afad12fd089ccd988bf4519 (patch)
tree4be523ea711dfae7af00586cee88e834b9fe3445 /examples
parent8a4fe400b69871cd593102a3530be8756091be02 (diff)
downloadQt-8c39a1ad27594e514afad12fd089ccd988bf4519.zip
Qt-8c39a1ad27594e514afad12fd089ccd988bf4519.tar.gz
Qt-8c39a1ad27594e514afad12fd089ccd988bf4519.tar.bz2
move smooth example in visual tests
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/smooth/GradientRect.qml25
-rw-r--r--examples/declarative/smooth/MyRect.qml21
-rw-r--r--examples/declarative/smooth/rect-painting.qml64
3 files changed, 0 insertions, 110 deletions
diff --git a/examples/declarative/smooth/GradientRect.qml b/examples/declarative/smooth/GradientRect.qml
deleted file mode 100644
index ed56418..0000000
--- a/examples/declarative/smooth/GradientRect.qml
+++ /dev/null
@@ -1,25 +0,0 @@
-import Qt 4.6
-
-Item {
- id: rect
- 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: rect.rotation;
- Rectangle {
- anchors.centerIn: parent; width: 80; height: 80
- border.color: rect.border; border.width: rect.border != "" ? 2 : 0
- radius: rect.radius; smooth: rect.smooth
- gradient: Gradient {
- GradientStop { position: 0.0; color: rect.color }
- GradientStop { position: 1.0; color: "white" }
- }
- }
- }
-}
diff --git a/examples/declarative/smooth/MyRect.qml b/examples/declarative/smooth/MyRect.qml
deleted file mode 100644
index 9b6c3ae..0000000
--- a/examples/declarative/smooth/MyRect.qml
+++ /dev/null
@@ -1,21 +0,0 @@
-import Qt 4.6
-
-Item {
- id: rect
- 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: rect.rotation;
- Rectangle {
- anchors.centerIn: parent; width: 80; height: 80
- color: rect.color; border.color: rect.border; border.width: rect.border != "" ? 2 : 0
- radius: rect.radius; smooth: rect.smooth
- }
- }
-}
diff --git a/examples/declarative/smooth/rect-painting.qml b/examples/declarative/smooth/rect-painting.qml
deleted file mode 100644
index 4b6e223..0000000
--- a/examples/declarative/smooth/rect-painting.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-import Qt 4.6
-
-Rectangle {
- width: 900; height: 500
- color: "white"
-
- Rectangle {
- anchors.top: parent.verticalCenter
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- color: "#eeeeee"
- }
-
- Grid {
- anchors.centerIn: parent
- columns: 8; rows:4; spacing: 30
-
- MyRect { color: "lightsteelblue" }
- MyRect { color: "lightsteelblue"; border: "gray" }
- MyRect { color: "lightsteelblue"; radius: 10 }
- MyRect { color: "lightsteelblue"; radius: 10; border: "gray" }
- GradientRect { color: "lightsteelblue" }
- GradientRect { color: "lightsteelblue"; border: "gray" }
- GradientRect { color: "lightsteelblue"; radius: 10 }
- GradientRect { color: "lightsteelblue"; radius: 10; border: "gray" }
-
- MyRect { color: "thistle"; rotation: 10 }
- MyRect { color: "thistle"; border: "gray"; rotation: 10 }
- MyRect { color: "thistle"; radius: 10; rotation: 10 }
- MyRect { color: "thistle"; radius: 10; border: "gray"; rotation: 10 }
- GradientRect { color: "thistle"; rotation: 10 }
- GradientRect { color: "thistle"; border: "gray"; rotation: 10 }
- GradientRect { color: "thistle"; radius: 10; rotation: 10 }
- GradientRect { color: "thistle"; radius: 10; border: "gray"; rotation: 10 }
-
- MyRect { color: "lightsteelblue"; smooth: true }
- MyRect { color: "lightsteelblue"; border: "gray"; smooth: true }
- MyRect { color: "lightsteelblue"; radius: 10; smooth: true }
- MyRect { color: "lightsteelblue"; radius: 10; border: "gray"; smooth: true }
- GradientRect { color: "lightsteelblue"; smooth: true }
- GradientRect { color: "lightsteelblue"; border: "gray"; smooth: true }
- GradientRect { color: "lightsteelblue"; radius: 10; smooth: true }
- GradientRect { color: "lightsteelblue"; radius: 10; border: "gray"; smooth: true }
-
- MyRect { color: "thistle"; rotation: 10; smooth: true }
- MyRect { color: "thistle"; border: "gray"; rotation: 10; smooth: true }
- MyRect { color: "thistle"; radius: 10; rotation: 10; smooth: true }
- MyRect { color: "thistle"; radius: 10; border: "gray"; rotation: 10; smooth: true }
- GradientRect { color: "thistle"; rotation: 10; smooth: true }
- GradientRect { color: "thistle"; border: "gray"; rotation: 10; smooth: true }
- GradientRect { color: "thistle"; radius: 10; rotation: 10; smooth: true }
- GradientRect { color: "thistle"; radius: 10; border: "gray"; rotation: 10; smooth: true }
- }
-
- Text {
- text: "smooth: false"; font.bold: true
- anchors.horizontalCenter: parent.horizontalCenter; anchors.top: parent.top
- }
- Text {
- text: "smooth: true"; font.bold: true
- anchors.horizontalCenter: parent.horizontalCenter; anchors.bottom: parent.bottom
- }
-}