1
0

qml add richText property to MessageDialog.

TODO: now we need to handle clicks on link too
This commit is contained in:
Sander van Grieken
2023-01-10 16:53:21 +01:00
parent b0e2e89395
commit 85718bda89

View File

@@ -14,6 +14,7 @@ ElDialog {
property bool yesno: false
property alias text: message.text
property bool richText: false
signal yesClicked
@@ -33,7 +34,7 @@ ElDialog {
Layout.preferredWidth: Overlay.overlay.width *2/3
readOnly: true
wrapMode: TextInput.WordWrap
//textFormat: TextEdit.RichText // existing translations not richtext yet
textFormat: richText ? TextEdit.RichText : TextEdit.PlainText
background: Rectangle {
color: 'transparent'
}