Make ConditionalLoader a FocusScope
QQuickLoader is a focus scope so that it can automatically forward the focus to it's item. Conditional loader should do the same and forward the focus to its internal loader.
This commit is contained in:
parent
f7a6df9129
commit
92928e38af
@ -25,7 +25,7 @@ import QtQuick 2.0
|
||||
* condition is satisfied. For instance the contents of the tabs of a TabBar
|
||||
* can be loaded only when they become the current page.
|
||||
*/
|
||||
Item {
|
||||
FocusScope {
|
||||
id: root
|
||||
|
||||
/**
|
||||
@ -56,6 +56,7 @@ Item {
|
||||
Loader {
|
||||
id: loader
|
||||
anchors.fill: parent
|
||||
focus: true
|
||||
|
||||
property bool when: false
|
||||
property variant conditionalSource
|
||||
|
Loading…
Reference in New Issue
Block a user