Browse Source

qml add richText property to MessageDialog.

TODO: now we need to handle clicks on link too
master
Sander van Grieken 3 years ago
parent
commit
85718bda89
  1. 3
      electrum/gui/qml/components/MessageDialog.qml

3
electrum/gui/qml/components/MessageDialog.qml

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

Loading…
Cancel
Save