Use QtRendering for fonts in password fields

Since the password echo is a circle woithout vertical or horizontal lines, it won't be
more blurred with different rendring types.
Using Qt rendering, the dots will look more aligned and equally spaced.

Change-Id: I8052f176930d1e2dc144f0b65daf539764cf08b1
REVIEW:123799
This commit is contained in:
Marco Martin 2015-05-15 14:29:08 +02:00
parent 2fe0f77feb
commit ae9cb77838

View File

@ -33,6 +33,13 @@ QtQuickControlStyle.TextFieldStyle {
selectedTextColor: theme.viewBackgroundColor
placeholderTextColor: Qt.rgba(theme.viewTextColor.r, theme.viewTextColor.g, theme.viewTextColor.b, 0.5)
/*
* Since the password echo is a circle woithout vertical or horizontal lines, it won't be
* more blurred with different rendring types.
* Using Qt rendering, the dots will look more aligned and equally spaced.
*/
renderType: control.echoMode == TextInput.Normal ? Text.NativeRendering : Text.QtRendering
background: Item {
implicitHeight: theme.mSize(theme.defaultFont).height * 1.6
implicitWidth: theme.mSize(theme.defaultFont).width * 12