diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-09-26 16:40:05 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-09-27 06:54:56 +0000 |
commit | d518d61006c55679f61add2130a7575dc68e61b5 (patch) | |
tree | e3d2473b7a278ac26526d3fe8b3dd910209afffc /tests/manual/testbench/controls/ItemDelegate.qml | |
parent | 76edd353009e5cfa2b435cc8cd4a7d0cced195f6 (diff) |
testbench: allow focus in delegates
QQuickItemDelegate sets Qt.NoFocus by default, but in testbench
it's useful to be able see keyboard focus.
Change-Id: I7a33cd5087279d111831d489cab1be8d93b60ec7
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/manual/testbench/controls/ItemDelegate.qml')
-rw-r--r-- | tests/manual/testbench/controls/ItemDelegate.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/testbench/controls/ItemDelegate.qml b/tests/manual/testbench/controls/ItemDelegate.qml index 98f13556..44882df9 100644 --- a/tests/manual/testbench/controls/ItemDelegate.qml +++ b/tests/manual/testbench/controls/ItemDelegate.qml @@ -67,6 +67,7 @@ QtObject { // Only set it if it's pressed, or the non-pressed examples will have no press effects down: is("pressed") ? true : undefined highlighted: is("highlighted") + focusPolicy: Qt.StrongFocus } property Component exampleComponent: ListView { @@ -77,6 +78,7 @@ QtObject { delegate: ItemDelegate { width: parent.width text: "ItemDelegate" + focusPolicy: Qt.StrongFocus } } } |