Heading

Search for usage in LXR

Heading Class Reference
Inheritance diagram for Heading:

Public Types

enum class  Type { Normal , Primary , Secondary }
 

Properties

int level
 
int type
 

Detailed Description

A heading label used for subsections of texts.

The characteristics of the text will be automatically set according to the plasma theme. Use this components for section titles or headings in your UI, for example page or section titles.

Example usage:

import org.kde.plasma.components as PlasmaComponents3
import org.kde.plasma.extras as PlasmaExtras
[...]
Column {
PlasmaExtras.Heading { text: "Fruit sweetness on the rise"; level: 1 }
PlasmaExtras.Heading { text: "Apples in the sunlight"; level: 2 }
PlasmaComponents3.Label { text: "Long text about fruit and apples [...]" }
[...]
}
int level
The level determines how big the section header is display, values between 1 (big) and 5 (small) are ...
Definition Heading.qml:40

The most important property is "text", which applies to the text property of Label. See PlasmaComponents Label and primitive QML Text element API for additional properties, methods and signals.

Definition at line 34 of file Heading.qml.

Member Enumeration Documentation

◆ Type

enum class Heading::Type
strong

Definition at line 41 of file Heading.qml.

Property Documentation

◆ level

int Heading::level
read

The level determines how big the section header is display, values between 1 (big) and 5 (small) are accepted.

(default: 1)

Definition at line 40 of file Heading.qml.

◆ type

int Heading::type
read

The type of the heading.

This can be:

  • PlasmaExtras.Heading.Type.Normal: Create a normal heading (default)
  • PlasmaExtras.Heading.Type.Primary: Makes the heading more prominent. Useful when making the heading bigger is not enough.
  • PlasmaExtras.Heading.Type.Secondary: Makes the heading less prominent. Useful when an heading is for a less important section in an application.
Since
5.88

Definition at line 57 of file Heading.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Nov 17 2024 19:23:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.