diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-06-18 23:23:29 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-10-04 09:46:26 +0000 |
commit | 0cb096251c4f5af79126e71cfa7a7f9e910dac95 (patch) | |
tree | 63f803c2937a8077d43afcb286e25f0b69aecad6 /tests/auto/controls | |
parent | 07b219ad7dea4f534ab214ea51673b3bece53d6c (diff) |
TextField: fix implicit size
Change-Id: Iceaa5af83b2a9f0eb03829829fcfc4e4a6261100
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests/auto/controls')
-rw-r--r-- | tests/auto/controls/data/tst_textfield.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_textfield.qml b/tests/auto/controls/data/tst_textfield.qml index bede2296..2ceb0b36 100644 --- a/tests/auto/controls/data/tst_textfield.qml +++ b/tests/auto/controls/data/tst_textfield.qml @@ -77,4 +77,14 @@ TestCase { pah.pressAndHoldKeepsSelection(control) control.destroy() } + + function test_implicitSize() { + var control = textField.createObject(testCase) + verify(control.implicitWidth > control.leftPadding + control.rightPadding) + control.background.implicitWidth = 400 + control.background.implicitHeight = 200 + compare(control.implicitWidth, 400) + compare(control.implicitHeight, 200) + control.destroy() + } } |