Skip to content
Snippets Groups Projects
Commit 06e9e91c authored by Aline Gondim Santos's avatar Aline Gondim Santos
Browse files

modalTextEdit: hide placeholder when selected

GitLab: #986
Change-Id: I4672ca2240a04a2a25780506750d0233b442aba5
parent 410a15a0
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,7 @@ TextField {
placeholderTextColor: !isActive
? JamiTheme.transparentColor
: JamiTheme.placeholderTextColor
property string initialPlaceholderText
property alias infoTipText: infoTip.text
......@@ -105,7 +106,7 @@ TextField {
font.pointSize: root.font.pointSize
anchors.baseline: root.baseline
anchors.horizontalCenter: root.horizontalCenter
text: root.placeholderText
text: root.initialPlaceholderText
color: root.baseColor
visible: !root.isActive && !readOnly && root.text.toString() === ""
}
......@@ -146,7 +147,7 @@ TextField {
font.pointSize: root.font.pointSize - 3
anchors.top: baselineLine.bottom
anchors.topMargin: 2
text: root.placeholderText
text: root.initialPlaceholderText
color: root.baseColor
// Show the alternate placeholder while the user types.
......
......@@ -92,7 +92,7 @@ Loader {
font.pointSize: root.fontPointSize
font.bold: root.fontBold
echoMode: root.echoMode
placeholderText: root.placeholderText
initialPlaceholderText: root.placeholderText
onAccepted: root.accepted()
onTextChanged: dynamicText = text
text: staticText
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment