aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktextinput/data/padding.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-02-02 17:51:16 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-03-05 22:45:13 +0000
commitb419ca92bef624893fa46559186b207905bc45e0 (patch)
tree6a6bcee25b606161b2c89f284fb3af532cd69b0e /tests/auto/quick/qquicktextinput/data/padding.qml
parente7c18e2a2b39f35667e76aaafa7135bde161a806 (diff)
TextInput: add support for padding
This makes it possible for TextField to inherit TextInput, reserve space for the decoration, and set the desired property defaults without having to create dozens of property aliases. [ChangeLog][QtQuick][TextInput] Added padding, leftPadding, topPadding, rightPadding and bottomPadding properties. Task-number: QTBUG-41559 Change-Id: Iaa7697a10a6f66685c7cae454edf4c1984d411bc Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com> Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'tests/auto/quick/qquicktextinput/data/padding.qml')
-rw-r--r--tests/auto/quick/qquicktextinput/data/padding.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicktextinput/data/padding.qml b/tests/auto/quick/qquicktextinput/data/padding.qml
new file mode 100644
index 0000000000..23bfe20f22
--- /dev/null
+++ b/tests/auto/quick/qquicktextinput/data/padding.qml
@@ -0,0 +1,12 @@
+import QtQuick 2.6
+
+TextInput {
+ width: 200; height: 200
+ text: "Hello Qt"
+
+ padding: 10
+ topPadding: 20
+ leftPadding: 30
+ rightPadding: 40
+ bottomPadding: 50
+}