1
0

qml: unify dialog headers

This commit is contained in:
Sander van Grieken
2022-09-30 14:37:14 +02:00
parent e73993dba5
commit 68b630a2e9
6 changed files with 56 additions and 125 deletions

View File

@@ -14,6 +14,7 @@ ElDialog {
property string text_help
title: ''
parent: Overlay.overlay
modal: true
standardButtons: Dialog.Close
@@ -25,19 +26,19 @@ ElDialog {
color: "#aa000000"
}
header: RowLayout {
width: dialog.width
Label {
Layout.fillWidth: true
text: dialog.title
visible: dialog.title
elide: Label.ElideRight
padding: constants.paddingXLarge
bottomPadding: 0
font.bold: true
font.pixelSize: constants.fontSizeMedium
}
}
// header: RowLayout {
// width: dialog.width
// Label {
// Layout.fillWidth: true
// text: dialog.title
// visible: dialog.title
// elide: Label.ElideRight
// padding: constants.paddingXLarge
// bottomPadding: 0
// font.bold: true
// font.pixelSize: constants.fontSizeMedium
// }
// }
Flickable {
anchors.fill: parent