From b3db7ce3711b461127e298a21b6dbdec7630d5b2 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 23 Oct 2012 22:04:47 +0200 Subject: [PATCH] export item --- .../plasmaextracomponents/qml/ConditionalLoader.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/declarativeimports/plasmaextracomponents/qml/ConditionalLoader.qml b/declarativeimports/plasmaextracomponents/qml/ConditionalLoader.qml index 3c098c2a2..14e86764b 100644 --- a/declarativeimports/plasmaextracomponents/qml/ConditionalLoader.qml +++ b/declarativeimports/plasmaextracomponents/qml/ConditionalLoader.qml @@ -29,13 +29,19 @@ Description: For instance the contents of the tabs of a TabBar can be loaded only when they become the current page Properties: - bool when: boolean condition that tells when to load the declarative component - variant source: it can be a string with a path name of a qml file or a Component. It's the component that will be loaded when "when" is true. If the component changes the old instantiated component will be deleted and the new will be loaded instead. + bool when: + Boolean condition that tells when to load the declarative component + + variant source: + It can be a string with a path name of a qml file or a Component. It's the component that will be loaded when "when" is true. If the component changes the old instantiated component will be deleted and the new will be loaded instead. + + Item item: the item instantiated from component, if any. **/ Item { id: root property alias when: loader.when property alias source: loader.conditionalSource + property alias item: loader.item Loader { id: loader