diff options
author | Jussi Witick <jussi.witick@qt.io> | 2017-02-17 10:27:12 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-06-16 12:44:40 +0000 |
commit | f19b1bf1bfee79178bf5cd75df86863be49c21f0 (patch) | |
tree | 15f6184f332011f9e4de543d337d555c08e8d814 /tests/auto/controls/data/tst_label.qml | |
parent | ae688459bc845ab919ce256f315843d97ba9ff32 (diff) | |
download | qtquickcontrols-f19b1bf1bfee79178bf5cd75df86863be49c21f0.tar.gz |
Increase QtQuick import from 2.2 to 2.6 for QML Label
Increase QtQuick import version to 2.6 to enable the properties of
underlying QML Text type to be usable in the QML Label type too.
Task-number: QTBUG-57895
Change-Id: I7a2b641a56c90ab91b4e6c973278d8943fa6903a
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'tests/auto/controls/data/tst_label.qml')
-rw-r--r-- | tests/auto/controls/data/tst_label.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_label.qml b/tests/auto/controls/data/tst_label.qml index e5c53a52..145c7f14 100644 --- a/tests/auto/controls/data/tst_label.qml +++ b/tests/auto/controls/data/tst_label.qml @@ -69,6 +69,17 @@ TestCase { label.destroy() } + function test_textPaddings() { + var label = Qt.createQmlObject('import QtQuick.Controls 1.2; Label { leftPadding: 2; rightPadding: 2; topPadding: 2; bottomPadding: 2 }', testCase, ''); + + compare(label.leftPadding, 2) + compare(label.rightPadding, 2) + compare(label.topPadding, 2) + compare(label.bottomPadding, 2) + + label.destroy() + } + function test_activeFocusOnTab() { if (Qt.styleHints.tabFocusBehavior != Qt.TabFocusAllControls) skip("This function doesn't support NOT iterating all.") |