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:
Frederik Gladhorn 2014-08-21 09:58:40 +02:00
parent f7a6df9129
commit 92928e38af

View File

@ -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