chore: add a deprecation warning and some forward compatibility

... for `title` and `subtitle`
This commit is contained in:
Lukáš Tinkl 2023-10-12 12:51:28 +02:00 committed by Lukáš Tinkl
parent 331f27b52a
commit d6648c4a5d
1 changed files with 6 additions and 3 deletions

View File

@ -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.