9import org.kde.plasma.components as PlasmaComponents
10import org.kde.kirigami as Kirigami
17 property int preferredTextWidth: Kirigami.Units.gridUnit * 20
19 implicitWidth: mainLayout.implicitWidth + Kirigami.Units.largeSpacing * 2
20 implicitHeight: mainLayout.implicitHeight + Kirigami.Units.largeSpacing * 2
22 LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft
23 LayoutMirroring.childrenInherit: true
25 Kirigami.Theme.colorSet: Kirigami.Theme.Window
26 Kirigami.Theme.inherit: false
30 anchors.centerIn: parent
31 anchors.margins: Kirigami.Units.largeSpacing
33 spacing: Kirigami.Units.gridUnit
36 source: toolTip ? toolTip.image : ""
37 visible: toolTip !== null && toolTip.image !== "
"
38 Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
43 source: toolTip ? toolTip.icon : ""
44 Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
45 visible: toolTip !== null && toolTip.icon !== "" && toolTip.image === "" && valid
46 Layout.preferredWidth: Kirigami.Units.iconSizes.medium
47 Layout.preferredHeight: Kirigami.Units.iconSizes.medium
51 Layout.maximumWidth: preferredTextWidth
56 Layout.fillWidth: true
57 elide: Text.ElideRight
59 text: toolTip ? toolTip.mainText : ""
60 textFormat: Text.PlainText
64 PlasmaComponents.Label {
65 Layout.fillWidth: true
66 wrapMode: Text.WordWrap
67 text: toolTip ? toolTip.subText : ""
68 textFormat: toolTip ? toolTip.textFormat : Text.AutoText
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:41 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.