Changeset View
Changeset View
Standalone View
Standalone View
src/controls/Heading.qml
Show All 12 Lines | |||||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU Library General Public | 14 | * You should have received a copy of the GNU Library General Public | ||
15 | * License along with this program; if not, write to the | 15 | * License along with this program; if not, write to the | ||
16 | * Free Software Foundation, Inc., | 16 | * Free Software Foundation, Inc., | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | import QtQuick 2.0 | 20 | import QtQuick 2.0 | ||
21 | import org.kde.kirigami 1.0 | 21 | import org.kde.kirigami 2.0 | ||
22 | 22 | | |||
23 | /** | 23 | /** | ||
24 | * A heading label used for subsections of texts. | 24 | * A heading label used for subsections of texts. | ||
25 | * | 25 | * | ||
26 | * The characteristics of the text will be automatically set according to the | 26 | * The characteristics of the text will be automatically set according to the | ||
27 | * plasma Theme. Use this components for section titles or headings in your UI, | 27 | * plasma Theme. Use this components for section titles or headings in your UI, | ||
28 | * for example page or section titles. | 28 | * for example page or section titles. | ||
29 | * | 29 | * | ||
30 | * Example usage: | 30 | * Example usage: | ||
31 | * | 31 | * | ||
32 | * @code | 32 | * @code | ||
33 | * import org.kde.kirigami 1.0 as Kirigami | 33 | * import org.kde.kirigami 2.0 as Kirigami | ||
34 | * [...] | 34 | * [...] | ||
35 | * Column { | 35 | * Column { | ||
36 | * Kirigami.Heading { | 36 | * Kirigami.Heading { | ||
37 | * text: "Apples in the sunlight" | 37 | * text: "Apples in the sunlight" | ||
38 | * level: 2 | 38 | * level: 2 | ||
39 | * } | 39 | * } | ||
40 | * [...] | 40 | * [...] | ||
41 | * } | 41 | * } | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |