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 {
|
||||
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
|
||||
PlasmaComponents.ListItem {
|
||||
BatteryInterface {
|
||||
|
@ -54,7 +68,7 @@ PlasmaComponents.ListItem
|
|||
anchors.right: parent.right
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Notifications
|
||||
PlasmaComponents.ListItem {
|
||||
visible: notificationsModel.count>0
|
||||
|
|
Loading…
Reference in a new issue