Warning, /frameworks/knewstuff/src/qtquick/qml/private/ConditionalLoader.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 SPDX-FileCopyrightText: 2015 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
0003
0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006
0007 import QtQuick 2.11
0008 import QtQuick.Layouts 1.11
0009
0010 Loader
0011 {
0012 id: root
0013
0014 property Component componentTrue
0015 property Component componentFalse
0016 property bool condition
0017
0018 Layout.minimumHeight: item && item.Layout ? item.Layout.minimumHeight : 0
0019 Layout.minimumWidth: item && item.Layout ? item.Layout.minimumWidth : 0
0020 sourceComponent: condition ? componentTrue : componentFalse
0021 }