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,13 +30,27 @@ PlasmaComponents.ListItem
Column { Column {
width: parent.width width: parent.width
Row
{
PlasmaComponents.Label { PlasmaComponents.Label {
width: parent.width width: parent.width - browse.width
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
text: display text: display
} }
PlasmaComponents.Button {
id: browse
text: "Browse"
onClicked: {
text = "Hello"
}
}
height: browse.height
width: parent.width
}
//Battery //Battery
PlasmaComponents.ListItem { PlasmaComponents.ListItem {
BatteryInterface { BatteryInterface {