diff --git a/sandbox/Popups.qml b/sandbox/Popups.qml index 22c36628..e4e58812 100644 --- a/sandbox/Popups.qml +++ b/sandbox/Popups.qml @@ -13,6 +13,11 @@ Column { onClicked: simpleModal.open() } + StatusButton { + text: "Simple title modal" + onClicked: simpleTitleModal.open() + } + StatusButton { text: "Modal with header image" onClicked: headerImageModal.open() @@ -65,6 +70,12 @@ Column { header.subTitle: "Subtitle" } + StatusModal { + id: simpleTitleModal + anchors.centerIn: parent + header.title: "Some Title" + } + StatusModal { id: headerImageModal anchors.centerIn: parent diff --git a/src/StatusQ/Popups/statusModal/StatusImageWithTitle.qml b/src/StatusQ/Popups/statusModal/StatusImageWithTitle.qml index 9a1aaf43..45c16bcd 100644 --- a/src/StatusQ/Popups/statusModal/StatusImageWithTitle.qml +++ b/src/StatusQ/Popups/statusModal/StatusImageWithTitle.qml @@ -119,6 +119,7 @@ Row { color:Theme.palette.baseColor1 width: parent.width elide: statusImageWithTitle.subTitleElide + visible: !!statusImageWithTitle.subTitle } } }