From 3015ebf461bc2a60fd88f0ce8a49a91a1c48fa88 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 17 Nov 2021 03:07:24 +0100 Subject: [PATCH] DesktopSystemDialog: Do not override a property from the parent --- components/dialogs/DesktopSystemDialog.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/dialogs/DesktopSystemDialog.qml b/components/dialogs/DesktopSystemDialog.qml index 19cbd47b6..b7cd85684 100644 --- a/components/dialogs/DesktopSystemDialog.qml +++ b/components/dialogs/DesktopSystemDialog.qml @@ -21,9 +21,9 @@ Kirigami.AbstractApplicationWindow { default property Item mainItem /** - * Title of the dialog. + * Main text of the dialog. */ - property string title: "" + property alias mainText: titleHeading.text /** * Subtitle of the dialog. @@ -112,9 +112,9 @@ Kirigami.AbstractApplicationWindow { Layout.fillWidth: true spacing: Kirigami.Units.largeSpacing Kirigami.Heading { + id: titleHeading Layout.fillWidth: true level: 2 - text: root.title wrapMode: Text.Wrap elide: Text.ElideRight }