use gridlayout
This commit is contained in:
parent
e27dadba0f
commit
dddbb82984
1 changed files with 12 additions and 14 deletions
|
|
@ -14,26 +14,24 @@ StyledPopupWindow {
|
||||||
margins: 16
|
margins: 16
|
||||||
radius: 8
|
radius: 8
|
||||||
|
|
||||||
content: ColumnLayout {
|
content: GridLayout {
|
||||||
spacing: 16
|
|
||||||
|
|
||||||
RowLayout {
|
columns: 2
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
StyledSwitch {
|
StyledSwitch {
|
||||||
text: "Enabled"
|
text: "Enabled"
|
||||||
checked: Notifications.enabled
|
checked: Notifications.enabled
|
||||||
onClicked: Notifications.enabled = checked
|
onClicked: Notifications.enabled = checked
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledButton {
|
StyledButton {
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
text: "Clear"
|
text: "Clear"
|
||||||
onClicked: Notifications.clear()
|
onClicked: Notifications.clear()
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledLabel {
|
StyledLabel {
|
||||||
|
Layout.columnSpan: 2
|
||||||
color: Theme.palette.base200
|
color: Theme.palette.base200
|
||||||
StyledListView {
|
StyledListView {
|
||||||
id: notifications
|
id: notifications
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue