Fix porting issue

textField does not exist here, it's called control. Also QQC2.TextField
doesn't have length, we need to check the text.
This commit is contained in:
Aleix Pol 2020-11-03 02:02:39 +01:00
parent e002589da1
commit bc25ad21f0

View File

@ -33,7 +33,7 @@ T.TextField {
// this takes into account kiosk restriction
readonly property bool __effectiveRevealPasswordButtonShown: revealPasswordButtonShown
&& KAuthorized.authorize("lineedit_reveal_password")
&& (echoMode == TextInput.Normal || textField.length > 0)
&& (echoMode == TextInput.Normal || control.text.length > 0)
implicitWidth: Math.max((placeholderText ? placeholder.implicitWidth : 0),
units.gridUnit * 8,