first steps in QML

This commit is contained in:
Samoilenko Yuri 2014-01-27 20:52:29 +04:00
parent e9f31abd98
commit a9ed55b644

View file

@ -30,11 +30,25 @@ PlasmaComponents.ListItem
Column {
width: parent.width
PlasmaComponents.Label {
Row
{
PlasmaComponents.Label {
width: parent.width - browse.width
horizontalAlignment: Text.AlignHCenter
text: display
}
PlasmaComponents.Button {
id: browse
text: "Browse"
onClicked: {
text = "Hello"
}
}
height: browse.height
width: parent.width
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter
text: display
}
//Battery