tests/auto/declarative/qmlvisual/rect/rect-painting.qml
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 15:10:48 +0300
changeset 30 5dc02b23752f
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

import Qt 4.7

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 }
    }
}