1import QtQuick 1.0
2
3Item {
4    id: rect
5    property color color
6    property color border : Qt.rgba(0,0,0,0)
7    property int rotation
8    property int radius
9    property int borderWidth
10    property bool smooth: false
11
12    width: 40; height: 40
13    Item {
14        anchors.centerIn: parent; rotation: rect.rotation;
15        Rectangle {
16            anchors.centerIn: parent; width: 40; height: 40
17            color: rect.color; border.color: rect.border; border.width: rect.border != Qt.rgba(0,0,0,0) ? 2 : 0
18            radius: rect.radius; smooth: rect.smooth
19        }
20    }
21}
22