summaryrefslogtreecommitdiff
path: root/src/controls/TextField.qml
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-10-17 15:37:30 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-21 12:48:32 +0200
commite38b8327dc03526dbea5b6a0f073ba1d32d6d9f2 (patch)
tree28fed46504cfa533022e1605bee8acb42ec3213c /src/controls/TextField.qml
parent66c2c264b32748ea5a80cdd33fd6d7909e9825ed (diff)
downloadqtquickcontrols-e38b8327dc03526dbea5b6a0f073ba1d32d6d9f2.tar.gz
Expose renderType to SpinBox and TextField
This is useful in case you want to create your own scaling styled controls. Task-number: QTBUG-33917 Change-Id: I0d641319a3106b8e0971d0aae69799bc1aff7f78 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
Diffstat (limited to 'src/controls/TextField.qml')
-rw-r--r--src/controls/TextField.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controls/TextField.qml b/src/controls/TextField.qml
index d8829403..8ac2e273 100644
--- a/src/controls/TextField.qml
+++ b/src/controls/TextField.qml
@@ -561,7 +561,7 @@ Control {
color: __panel ? __panel.placeholderTextColor : "darkgray"
clip: contentWidth > width;
elide: Text.ElideRight
- renderType: Text.NativeRendering
+ renderType: __style ? __style.renderType : Text.NativeRendering
Behavior on opacity { NumberAnimation { duration: 90 } }
}
@@ -584,7 +584,7 @@ Control {
color: __panel ? __panel.textColor : "darkgray"
clip: contentWidth > width
- renderType: Text.NativeRendering
+ renderType: __style ? __style.renderType : Text.NativeRendering
onAccepted: textfield.accepted()
}