aboutsummaryrefslogtreecommitdiff
path: root/components/LineEdit.qml
diff options
context:
space:
mode:
authorSander Ferdinand <sa.ferdinand@gmail.com>2017-11-25 22:53:07 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-29 23:04:01 +0100
commit6d21b9919d5fc100eb3565fbe6038007c45ce078 (patch)
tree7855e843d01c66e4cc8f5cbf65c2b45fa25be1d2 /components/LineEdit.qml
parent36ac2ee86dd159ce5c78381104cef1401377dcfe (diff)
downloadmonzero-gui-6d21b9919d5fc100eb3565fbe6038007c45ce078.tar.gz
monzero-gui-6d21b9919d5fc100eb3565fbe6038007c45ce078.tar.xz
monzero-gui-6d21b9919d5fc100eb3565fbe6038007c45ce078.zip
InlineButton development
Diffstat (limited to 'components/LineEdit.qml')
-rw-r--r--components/LineEdit.qml8
1 files changed, 5 insertions, 3 deletions
diff --git a/components/LineEdit.qml b/components/LineEdit.qml
index 964af52f..c6cd65de 100644
--- a/components/LineEdit.qml
+++ b/components/LineEdit.qml
@@ -37,6 +37,7 @@ Item {
property alias readOnly : input.readOnly
property alias cursorPosition: input.cursorPosition
property alias echoMode: input.echoMode
+ property alias inlineButton: inlineButtonId
property alias inlineButtonText: inlineButtonId.text
property alias inlineIcon: inlineIcon.visible
property int fontSize: 18 * scaleRatio
@@ -70,9 +71,9 @@ Item {
function getColor(error) {
// @TODO: replace/remove this (implement as ternary?)
if (error)
- return Style.inputBoxBackground
+ return "transparent"
else
- return Style.inputBoxBackground
+ return "transparent"
}
Text {
@@ -85,7 +86,7 @@ Item {
font.pixelSize: 20 * scaleRatio
color: "#FFFFFF"
text: ""
- visible: item.setPlaceholder() ? false : true
+ visible: input.text ? false : true
z: 3
}
@@ -128,6 +129,7 @@ Item {
InlineButton {
id: inlineButtonId
+ onClicked: inlineButtonId.onClicked
visible: item.inlineButtonText ? true : false
}
}