Kirigami2
8 import QtQuick.Controls 2.0 as QQC2
9 import org.kde.kirigami 2.4 as Kirigami
84 property int type: Kirigami.Heading.Type.Normal
86 font.pointSize: __headerPointSize(level)
87 font.weight: type === Kirigami.Heading.Type.Primary ? Font.DemiBold : Font.Normal
89 opacity: type === Kirigami.Heading.Type.Secondary ? 0.7 : 1
91 Accessible.role: Accessible.Heading
94 function headerPointSize(l) {
95 console.warn(
"org.kde.plasma.extras/Heading::headerPointSize() is deprecated. Use font.pointSize directly instead");
96 return __headerPointSize(l);
109 function __headerPointSize(level) {
110 const n = Kirigami.Theme.defaultFont.pointSize;
113 return n * 1.35 + step;
115 return n * 1.20 + step;
117 return n * 1.15 + step;
119 return n * 1.10 + step;
Type
This enumeration defines heading types.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 04:11:03 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.