From 85718bda898c64756fe04d6d78149f868776f43f Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Tue, 10 Jan 2023 16:53:21 +0100 Subject: [PATCH] qml add richText property to MessageDialog. TODO: now we need to handle clicks on link too --- electrum/gui/qml/components/MessageDialog.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/components/MessageDialog.qml b/electrum/gui/qml/components/MessageDialog.qml index 7ec854318..0d6a5e77f 100644 --- a/electrum/gui/qml/components/MessageDialog.qml +++ b/electrum/gui/qml/components/MessageDialog.qml @@ -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' }