aboutsummaryrefslogtreecommitdiff
path: root/components/LineEditMulti.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/LineEditMulti.qml')
-rw-r--r--components/LineEditMulti.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/LineEditMulti.qml b/components/LineEditMulti.qml
index 191498f5..17b50b2e 100644
--- a/components/LineEditMulti.qml
+++ b/components/LineEditMulti.qml
@@ -78,7 +78,7 @@ ColumnLayout {
property var onPaste: function(clipboardText) {
item.text = clipboardText;
}
- property bool showingHeader: true
+ property bool showingHeader: labelText != "" || copyButton || pasteButton
property var wrapMode: Text.NoWrap
property alias addressValidation: input.addressValidation
property string backgroundColor: "" // mock
@@ -150,7 +150,7 @@ ColumnLayout {
readOnly: false
addressValidation: false
Layout.fillWidth: true
- topPadding: item.showingHeader ? 10 * scaleRatio : 0
+ topPadding: 10 * scaleRatio
bottomPadding: 10 * scaleRatio
wrapMode: item.wrapMode
fontSize: item.fontSize