From c53aa3b9278bba5ec7d8092818e45002415c9f73 Mon Sep 17 00:00:00 2001 From: Mentalflow <312902918@qq.com> Date: Tue, 6 Aug 2024 02:58:10 +0800 Subject: [PATCH] RibbonMessageGroup: Add the missing 'rounded' property for 'showMessage()'. --- lib_source/qml/Qt5/RibbonMessageBarGroup.qml | 5 ++++- lib_source/qml/Qt6/RibbonMessageBarGroup.qml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib_source/qml/Qt5/RibbonMessageBarGroup.qml b/lib_source/qml/Qt5/RibbonMessageBarGroup.qml index 3653744..f726c6d 100644 --- a/lib_source/qml/Qt5/RibbonMessageBarGroup.qml +++ b/lib_source/qml/Qt5/RibbonMessageBarGroup.qml @@ -218,7 +218,8 @@ RibbonBlur { Window.window.messageBar = control } - function showMessage(type, text, actionALabel, actionBLabel, externalURL, externalURLLabel, disableMultiline){ + function showMessage(type, text, actionALabel, actionBLabel, externalURL, + externalURLLabel, disableMultiline, rounded){ let item = {} if(type) item['type'] = type @@ -234,6 +235,8 @@ RibbonBlur { item['externalURLLabel'] = externalURLLabel if(disableMultiline) item['disableMultiline'] = disableMultiline + if(rounded) + item['rounded'] = rounded messageModel.append(item) } diff --git a/lib_source/qml/Qt6/RibbonMessageBarGroup.qml b/lib_source/qml/Qt6/RibbonMessageBarGroup.qml index 5df9b0e..3e37e50 100644 --- a/lib_source/qml/Qt6/RibbonMessageBarGroup.qml +++ b/lib_source/qml/Qt6/RibbonMessageBarGroup.qml @@ -218,7 +218,8 @@ RibbonBlur { Window.window.messageBar = control } - function showMessage(type, text, actionALabel, actionBLabel, externalURL, externalURLLabel, disableMultiline){ + function showMessage(type, text, actionALabel, actionBLabel, externalURL, + externalURLLabel, disableMultiline, rounded){ let item = {} if(type) item['type'] = type @@ -234,6 +235,8 @@ RibbonBlur { item['externalURLLabel'] = externalURLLabel if(disableMultiline) item['disableMultiline'] = disableMultiline + if(rounded) + item['rounded'] = rounded messageModel.append(item) }