aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_abstractbutton.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-03 13:12:27 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-03 17:18:12 +0000
commit5801239f70614e94f4a977b4122079c4ce2c232c (patch)
tree9f4e2ee124e2a08c969b80cefb7ed224c063a723 /tests/auto/controls/data/tst_abstractbutton.qml
parent6f9c52781a6ae2c84cb8b6e849a18856aef60f80 (diff)
Promote Button::highlighted to AbstractButton
Change-Id: I0e17a6c25dfd89fdb547720e9a626c2ec9d7765a Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests/auto/controls/data/tst_abstractbutton.qml')
-rw-r--r--tests/auto/controls/data/tst_abstractbutton.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_abstractbutton.qml b/tests/auto/controls/data/tst_abstractbutton.qml
index 11537d68..4e635d63 100644
--- a/tests/auto/controls/data/tst_abstractbutton.qml
+++ b/tests/auto/controls/data/tst_abstractbutton.qml
@@ -67,4 +67,13 @@ TestCase {
control.destroy();
}
+
+ function test_highlighted() {
+ var control = button.createObject(testCase)
+ verify(control)
+ compare(control.highlighted, false)
+
+ control.highlighted = true
+ compare(control.highlighted, true)
+ }
}