From 4cd3cd7cbec2a6713ba146b7036652f6916cab1e Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Fri, 13 Nov 2015 11:35:16 +0100 Subject: 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 --- tests/auto/controls/data/tst_button.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') 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) + } } -- cgit v1.2.3