Adding wip version for meego harmattan
[feedingit] / psa_harmattan / feedingit / deb_dist / feedingit-0.1.0 / qml / common / AddCat.qml
1 import Qt 4.7
2
3 Rectangle {
4     id: addCat;
5     width: 200 //parent.width
6     height: 172
7     color: "white"
8     property alias catName: categoryName.text
9     MouseArea { anchors.fill: parent; onClicked: {} }
10     Column {
11         Row {
12             width: addCat.width
13             height: 86;
14             Text { anchors.verticalCenter: parent.verticalCenter; text: qsTr("Category name:") }
15             LineInput{
16                 id: categoryName
17                 anchors.centerIn: parent
18                 width: 140
19                 focus: true
20             }
21         }
22         Row {
23             width: addCat.width
24             Button {
25                 id: ok
26                 text: qsTr("OK")
27                 anchors.margins: 5; y: 3; width: 80; height: 60
28                 onClicked: container.addCategory(categoryName.text)
29             }
30
31             Button {
32                 id: cancel
33                 text: qsTr("Cancel")
34                 anchors.margins: 5; y: 3; width: 80; height: 60
35                 onClicked: addCat.visible=false;
36             }
37         }
38     }
39
40 }