From bb8af0cd0816443977ec449737699f2c27305911 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Wed, 24 Aug 2022 10:15:03 +0200 Subject: [PATCH] qml: add help_text to GenericShareDialog --- electrum/gui/qml/components/GenericShareDialog.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/electrum/gui/qml/components/GenericShareDialog.qml b/electrum/gui/qml/components/GenericShareDialog.qml index 966bf815e..df728ea1d 100644 --- a/electrum/gui/qml/components/GenericShareDialog.qml +++ b/electrum/gui/qml/components/GenericShareDialog.qml @@ -11,6 +11,7 @@ ElDialog { property string text property string text_qr // if text_qr is undefined text will be used + property string text_help title: '' parent: Overlay.overlay @@ -76,9 +77,18 @@ ElDialog { wrapMode: Text.Wrap font.pixelSize: constants.fontSizeLarge font.family: FixedFont + maximumLineCount: 4 + elide: Text.ElideRight } } + Label { + visible: dialog.text_help + text: dialog.text_help + wrapMode: Text.Wrap + Layout.fillWidth: true + } + RowLayout { Layout.fillWidth: true Layout.alignment: Qt.AlignHCenter