6pragma ComponentBehavior: Bound
10import QtQuick.Templates as T
11import org.kde.kirigami as Kirigami
67 property list<T.Action> actions
70 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
71 Math.ceil(label.implicitWidth)
73 + Math.ceil(Math.max(buttonsLoader.implicitWidth, buttonsLoader.Layout.minimumWidth))
74 + leftPadding + rightPadding)
75 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
76 implicitContentHeight + topPadding + bottomPadding)
78 topPadding: Kirigami.Units.smallSpacing + (root.position === T.ToolBar.Footer ? separator.implicitHeight : 0)
79 leftPadding: Kirigami.
Units.largeSpacing
80 rightPadding: Kirigami.
Units.smallSpacing
81 bottomPadding: Kirigami.
Units.smallSpacing + (root.position === T.
ToolBar.Header ? separator.implicitHeight : 0)
91 transform: Translate {
95 background: Rectangle {
96 Kirigami.Theme.colorSet: Kirigami.Theme.
View
97 Kirigami.Theme.inherit: false
103 color:
Qt.tint(Kirigami.Theme.backgroundColor,
Qt.alpha(Kirigami.Theme.textColor, 0.03))
109 top: root.position === T.
ToolBar.Footer ? parent.top : undefined
112 bottom: root.position === T.
ToolBar.Header ? parent.bottom : undefined
117 contentItem: RowLayout {
125 Layout.fillWidth: !buttonsLoader.active
126 Layout.maximumWidth: {
127 if (!buttonsLoader.active) {
130 return rowLayout.width
132 - buttonsLoader.Layout.minimumWidth;
134 Layout.alignment:
Qt.AlignVCenter
137 elide: Text.ElideRight
138 wrapMode: Text.NoWrap
145 Layout.fillWidth:
true
146 Layout.alignment:
Qt.AlignVCenter
147 Layout.minimumWidth: item?.Layout.minimumWidth ?? 0
148 active: root.actions.length > 0
149 sourceComponent: Kirigami.ActionToolBar {
150 actions: root.actions
151 alignment:
Qt.AlignRight
A heading label used for subsections of texts.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:52 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.