• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kde-runtime API Reference
  • KDE Home
  • Contact Us
 

PlasmaExtraComponents

Properties | List of all members
ConditionalLoader Class Reference

Inherits Item.

Properties

Item item
 
variant source
 
bool when
 

Detailed Description

Copyright (C) 2012 Marco Martin mart@.nosp@m.kde..nosp@m.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:
  • ConditionalLoader.qml
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

PlasmaExtraComponents

Skip menu "PlasmaExtraComponents"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kde-runtime API Reference

Skip menu "kde-runtime API Reference"
  • KCMShell
  • KNotify
  • Plasma Runtime
  •     PlasmaCore
  •     DragAndDrop
  •     PlasmaComponents
  •     PlasmaExtraComponents
  •     QtExtraComponents

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal