Kirigami2

DefaultPageTitleDelegate.qml
1/*
2 * SPDX-FileCopyrightText: 2023 ivan tkachenko <me@ratijas.tk>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7import QtQuick
8import QtQuick.Layouts
9import org.kde.kirigami as Kirigami
10
11/**
12 * This component is used as a default representation for a page title within
13 * page's header/toolbar. It is just a Heading item with shrinking + eliding
14 * behavior.
15 *
16 * \private
17 */
18Item {
19 property alias text: heading.text
20
21 Layout.fillWidth: true
22 Layout.minimumWidth: 0
23 Layout.maximumWidth: implicitWidth
24
25 implicitWidth: Math.ceil(heading.implicitWidth)
26 implicitHeight: Math.ceil(heading.implicitHeight)
27
28 Kirigami.Heading {
29 id: heading
30
31 anchors.fill: parent
32 maximumLineCount: 1
33 elide: Text.ElideRight
34 textFormat: Text.PlainText
35 }
36}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.