better dialog content in tca

This commit is contained in:
Sebastian Kügler 2013-02-22 03:51:51 +01:00
parent 00c93c186d
commit f23ca788ee

View File

@ -29,26 +29,34 @@ import org.kde.qtextracomponents 0.1 as QtExtras
Item {
id: dialogsPage
width: 300
height: 300
height: 200
signal closeMe()
Rectangle {
color: "green"
//anchors.margins: 24
opacity: 0.1
opacity: 0
anchors.fill: parent
}
PlasmaComponents.TextArea {
anchors { left: parent.left; right: parent.right; top: parent.top; }
//width: parent.width
height: _h*2
}
PlasmaComponents.Button {
id: thanks
anchors { right: parent.right; bottom: parent.bottom; }
iconSource: "dialog-ok"
text: "Thanks."
//onClicked: dialogsPage.parent.visible = false;
onClicked: closeMe()
Column {
anchors.fill: parent
spacing: 12
PlasmaExtras.Title {
id: tx
text: "Test Dialog"
}
PlasmaComponents.TextArea {
anchors { left: parent.left; right: parent.right; top: tx.bottom; }
width: parent.width
height: 80
}
PlasmaComponents.Button {
id: thanks
anchors { horizontalCenter: parent.horizontalCenter; bottom: parent.bottom; bottomMargin: 24; }
iconSource: "dialog-ok"
text: "Thanks."
//onClicked: dialogsPage.parent.visible = false;
onClicked: closeMe()
}
}
}