LabelDelegate

Search for usage in LXR

LabelDelegate Class Reference
Inheritance diagram for LabelDelegate:

Properties

alias color
 
alias icon
 
bool isSection
 
alias label
 
alias template
 
alias text
 

Detailed Description

A basic MauiKit delegate for displaying a text label with an icon in a horizontal layout.

Warning
This item is not interactive and is meant to be use as an information label. Not press events are handled. For a similar interactive delegate checkout ListDelegate.
See also
ListDelegate

This controls inherits from QQC2 ItemDelegate, to checkout its inherited properties refer to the Qt Docs.

Column
{
width: Math.min(600, parent.width)
anchors.centerIn: parent
Maui.LabelDelegate
{
width: parent.width
text: "Hola!"
icon.name: "love"
}
Maui.LabelDelegate
{
width: parent.width
text: "Section Header"
icon.name: "anchor"
isSection: true
}
Maui.LabelDelegate
{
width: parent.width
text: "Regular label thingy."
}
Maui.LabelDelegate
{
width: parent.width
text: "Hola!"
icon.name: "folder"
}
}
bool isSection
Whether the label should be styled as a section header.
alias icon
The group icon properties, to set the icon name, source, and size.

You can find a more complete example at this link.

Definition at line 74 of file LabelDelegate.qml.

Property Documentation

◆ color

alias LabelDelegate::color
read
See also
IconLabel::color

Definition at line 94 of file LabelDelegate.qml.

◆ icon

alias LabelDelegate::icon
read

The group icon properties, to set the icon name, source, and size.

Definition at line 98 of file LabelDelegate.qml.

◆ isSection

bool LabelDelegate::isSection
read

Whether the label should be styled as a section header.

See also
SectionHeader By default this is set to false.

Definition at line 86 of file LabelDelegate.qml.

◆ label

alias LabelDelegate::label
read
See also
IconLabel::label

Definition at line 90 of file LabelDelegate.qml.

◆ template

IconLabel LabelDelegate::template
read

An alias to the IconLabel control handling the information.

See also
IconLabel for properties.

Definition at line 108 of file LabelDelegate.qml.

◆ text

alias LabelDelegate::text
read
See also
IconLabel::text

Definition at line 102 of file LabelDelegate.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 Fri May 17 2024 11:56:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.