first steps in QML
This commit is contained in:
parent
e9f31abd98
commit
a9ed55b644
1 changed files with 20 additions and 6 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue