--- /dev/null
+import Qt 4.7
+
+Rectangle {
+ id: addCat;
+ width: 200 //parent.width
+ height: 172
+ color: "white"
+ property alias catName: categoryName.text
+ MouseArea { anchors.fill: parent; onClicked: {} }
+ Column {
+ Row {
+ width: addCat.width
+ height: 86;
+ Text { anchors.verticalCenter: parent.verticalCenter; text: qsTr("Category name:") }
+ LineInput{
+ id: categoryName
+ anchors.centerIn: parent
+ width: 140
+ focus: true
+ }
+ }
+ Row {
+ width: addCat.width
+ Button {
+ id: ok
+ text: qsTr("OK")
+ anchors.margins: 5; y: 3; width: 80; height: 60
+ onClicked: container.addCategory(categoryName.text)
+ }
+
+ Button {
+ id: cancel
+ text: qsTr("Cancel")
+ anchors.margins: 5; y: 3; width: 80; height: 60
+ onClicked: addCat.visible=false;
+ }
+ }
+ }
+
+}