PlasmaExtraComponents
Properties | |
Item | item |
variant | source |
bool | when |
Detailed Description
Copyright (C) 2012 Marco Martin mart@ kde. org
- Since
- 0.1This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details
You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. This item can load any qml component, just like a Loader. Important difference, the component will only be loaded when the "when" property is satisfied (ie evaluates to true) in this way it's easy to have big (and memory expensive) parts of the user interface load only when a certain condition is satisfied. For instance the contents of the tabs of a TabBar can be loaded only when they become the current page.
Definition at line 29 of file ConditionalLoader.qml.
Property Documentation
Item ConditionalLoader::item |
The item instantiated from component, if any.
Definition at line 48 of file ConditionalLoader.qml.
variant ConditionalLoader::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 one will be loaded instead.
Definition at line 43 of file ConditionalLoader.qml.
bool ConditionalLoader::when |
Condition that tells when to load the declarative component.
Definition at line 35 of file ConditionalLoader.qml.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:02:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.