equal
deleted
inserted
replaced
|
1 import Qt 4.7 |
|
2 |
|
3 Item { |
|
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: 80; height: 80 |
|
13 Item { |
|
14 anchors.centerIn: parent; rotation: rect.rotation; |
|
15 Rectangle { |
|
16 anchors.centerIn: parent; width: 80; height: 80 |
|
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 } |