aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2015-11-13 11:35:16 +0100
committerMitch Curtis <mitch.curtis@theqtcompany.com>2015-11-13 14:57:52 +0000
commit4cd3cd7cbec2a6713ba146b7036652f6916cab1e (patch)
tree7e7e599a735d623f9987b5a8f27ac037a394664d /tests
parenta6dc0e2462086b42e878a3f4e94216dd1c8bcc63 (diff)
Button: add highlighted property
Since our focus is on embedded, this will be used as an alternative to the "isDefault" property that exists in Qt Quick Controls. Change-Id: I9b6612e3c3b30040295aeea6d217e90a17af4ebe Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/controls/data/tst_button.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_button.qml b/tests/auto/controls/data/tst_button.qml
index 76d45e03..b5b37156 100644
--- a/tests/auto/controls/data/tst_button.qml
+++ b/tests/auto/controls/data/tst_button.qml
@@ -290,4 +290,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)
+ }
}