Warning, /frameworks/kirigami/src/controls/private/globaltoolbar/TitlesPageHeader.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 * SPDX-FileCopyrightText: 2018 Marco Martin <mart@kde.org>
0003 *
0004 * SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006
0007 import QtQuick
0008 import QtQuick.Layouts
0009
0010 AbstractPageHeader {
0011 id: root
0012
0013 Loader {
0014 id: titleLoader
0015
0016 anchors {
0017 verticalCenter: parent.verticalCenter
0018 left: parent.left
0019 right: parent.right
0020 }
0021 height: Math.min(root.height, item
0022 ? (item.Layout.preferredHeight > 0 ? item.Layout.preferredHeight : item.implicitHeight)
0023 : 0)
0024
0025 // Don't load async to prevent jumpy behaviour on slower devices as it loads in.
0026 // If the title delegate really needs to load async, it should be its responsibility to do it itself.
0027 asynchronous: false
0028 sourceComponent: page ? page.titleDelegate : null
0029 }
0030 }