aboutsummaryrefslogtreecommitdiff
path: root/components/LineEditMulti.qml
diff options
context:
space:
mode:
authorSander Ferdinand <sa.ferdinand@gmail.com>2018-03-19 02:42:46 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-29 23:04:03 +0100
commit57a9508849f36c7cda513df98e478babbc3e6cb3 (patch)
tree53ff925c28f13593fb065bad24c5801e454a1bb6 /components/LineEditMulti.qml
parent49770494251a318da37849f1c628f25edaf94483 (diff)
downloadmonzero-gui-57a9508849f36c7cda513df98e478babbc3e6cb3.tar.gz
monzero-gui-57a9508849f36c7cda513df98e478babbc3e6cb3.tar.xz
monzero-gui-57a9508849f36c7cda513df98e478babbc3e6cb3.zip
Receive page; modified subaddress table
Diffstat (limited to 'components/LineEditMulti.qml')
-rw-r--r--components/LineEditMulti.qml12
1 files changed, 10 insertions, 2 deletions
diff --git a/components/LineEditMulti.qml b/components/LineEditMulti.qml
index 43d67602..02f281f3 100644
--- a/components/LineEditMulti.qml
+++ b/components/LineEditMulti.qml
@@ -32,6 +32,7 @@ import "." 1.0
ColumnLayout {
+ id: lineditmulti
property alias text: multiLine.text
property alias placeholderText: placeholderLabel.text
property alias inputLabelText: inputLabel.text
@@ -43,6 +44,10 @@ ColumnLayout {
property bool labelButtonVisible: false
property bool copyButton: false
property bool wrapAnywhere: true
+ property bool showingHeader: true
+ property bool showBorder: true
+ property int fontSize: 18 * scaleRatio
+
signal labelButtonClicked();
signal inputLabelLinkActivated();
@@ -52,6 +57,7 @@ ColumnLayout {
color: "transparent"
Layout.fillWidth: true
height: (inputLabel.height + 10) * scaleRatio
+ visible: showingHeader ? true : false
Text {
id: inputLabel
@@ -91,11 +97,12 @@ ColumnLayout {
id: multiLine
readOnly: false
addressValidation: true
- anchors.top: inputLabelRect.bottom
+ anchors.top: parent.showingHeader ? inputLabelRect.bottom : parent.top
Layout.fillWidth: true
- topPadding: 10 * scaleRatio
+ topPadding: parent.showingHeader ? 10 * scaleRatio : 0
bottomPadding: 10 * scaleRatio
wrapAnywhere: parent.wrapAnywhere
+ fontSize: parent.fontSize
Text {
id: placeholderLabel
@@ -125,6 +132,7 @@ ColumnLayout {
}
radius: 4
anchors.fill: parent
+ visible: lineditmulti.showBorder
}
}
}