rollback to qtquick 1.0 to compatible with qtlib 4.7 maemo5 fremantle pr 1.3
[lichviet] / qml / DatePicker / component / Button.qml
1 import QtQuick 1.0\r
2 \r
3 Item {\r
4     property string buttonName: "NOT SET"\r
5     property string target: "NOT SET"\r
6     property string text: "NOT SET"\r
7 \r
8     property string fontName: "Helvetica"\r
9     property int fontSize: 14\r
10     property color fontColor: "black"\r
11 \r
12     property bool active: false\r
13 \r
14     signal clicked(string target, string button)\r
15 \r
16     width: 140\r
17     height: 60\r
18     opacity: enabled ? 1.0 : 0.5\r
19 \r
20     Rectangle{\r
21         anchors.fill: parent\r
22         width: container.width\r
23         height: container.height\r
24         color:"white"\r
25         border.color: "black"\r
26         radius: 8\r
27     }\r
28 \r
29     Text {\r
30         id: buttonLabel\r
31         text: parent.text\r
32         wrapMode: Text.WordWrap\r
33 \r
34         anchors {\r
35             horizontalCenter: parent.horizontalCenter\r
36             verticalCenter: parent.verticalCenter\r
37         }\r
38         font {\r
39             family: container.fontName\r
40             pointSize: container.fontSize\r
41         }\r
42         color: container.fontColor\r
43     }\r
44 }\r