From d6648c4a5d963b33bc3f02f1ef3f148f3a983076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Thu, 12 Oct 2023 12:51:28 +0200 Subject: [PATCH] chore: add a deprecation warning and some forward compatibility ... for `title` and `subtitle` --- ui/StatusQ/src/StatusQ/Popups/StatusModal.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/StatusQ/src/StatusQ/Popups/StatusModal.qml b/ui/StatusQ/src/StatusQ/Popups/StatusModal.qml index d7541a7451..532e5359fb 100644 --- a/ui/StatusQ/src/StatusQ/Popups/StatusModal.qml +++ b/ui/StatusQ/src/StatusQ/Popups/StatusModal.qml @@ -10,10 +10,10 @@ import "statusModal" as Spares /*! \qmltype StatusModal - \inherits Popup + \inherits StatusDialog \inqmlmodule StatusQ.Popups \since StatusQ.Popups 0.1 - \brief The StatusModal provides a template for creating Modals. + \brief DEPRECATED: for new code, please use StatusDialog! The StatusModal provides a template for creating Modals. Example of how to use it: @@ -134,7 +134,10 @@ StatusDialog { type: StatusModalHeaderSettings This property exposes the different properties of the standard header. */ - property StatusModalHeaderSettings headerSettings: StatusModalHeaderSettings {} + property StatusModalHeaderSettings headerSettings: StatusModalHeaderSettings { + title: root.title + subTitle: root.subtitle + } /*! \qmlproperty rightButtons This property helps user assign the right buttons on the footer.