Commit b1ae88ae authored by Nate Graham's avatar Nate Graham
Browse files

Make desktop config window able to scroll

This can become necessary if long translations push the inner formlayout
into widescreen mode, which makes it taller.

BUG: 440491
FIXED-IN: 21.08
parent d23c2a76
Pipeline #73093 passed with stage
in 18 seconds
......@@ -32,61 +32,43 @@ Window {
onActivated: close()
}
SystemPalette {
id: myPalette
colorGroup: SystemPalette.Active
}
// Draw standard window backround
Rectangle {
Kirigami.ScrollablePage {
anchors.fill: parent
color: myPalette.window
SettingsForm {}
ColumnLayout {
anchors.fill: parent
anchors.margins: Kirigami.Units.smallSpacing
footer: QQC2.DialogButtonBox {
SettingsForm {
Layout.fillWidth: true
Layout.leftMargin: Kirigami.Units.largeSpacing * 5
Layout.rightMargin: Kirigami.Units.largeSpacing * 5
QQC2.Button {
text: i18n("OK")
icon.name: 'dialog-ok-apply'
QQC2.DialogButtonBox.buttonRole: QQC2.DialogButtonBox.AcceptRole
Accessible.onPressAction: onClicked
}
onAccepted: {
ElisaConfigurationDialog.save()
close()
}
QQC2.Button {
text: i18n("Apply")
icon.name: 'dialog-ok-apply'
QQC2.DialogButtonBox.buttonRole: QQC2.DialogButtonBox.ApplyRole
Accessible.onPressAction: onClicked
QQC2.DialogButtonBox {
Layout.fillWidth: true
QQC2.Button {
text: i18n("OK")
icon.name: 'dialog-ok-apply'
QQC2.DialogButtonBox.buttonRole: QQC2.DialogButtonBox.AcceptRole
Accessible.onPressAction: onClicked
}
onAccepted: {
ElisaConfigurationDialog.save()
close()
}
QQC2.Button {
text: i18n("Apply")
icon.name: 'dialog-ok-apply'
QQC2.DialogButtonBox.buttonRole: QQC2.DialogButtonBox.ApplyRole
Accessible.onPressAction: onClicked
enabled: ElisaConfigurationDialog.isDirty
}
onApplied: ElisaConfigurationDialog.save()
QQC2.Button {
text: i18n("Cancel")
icon.name: 'dialog-cancel'
QQC2.DialogButtonBox.buttonRole: QQC2.DialogButtonBox.RejectRole
Accessible.onPressAction: onClicked
}
onRejected: {
ElisaConfigurationDialog.cancel()
close()
}
enabled: ElisaConfigurationDialog.isDirty
}
onApplied: ElisaConfigurationDialog.save()
QQC2.Button {
text: i18n("Cancel")
icon.name: 'dialog-cancel'
QQC2.DialogButtonBox.buttonRole: QQC2.DialogButtonBox.RejectRole
Accessible.onPressAction: onClicked
}
onRejected: {
ElisaConfigurationDialog.cancel()
close()
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment