SwitchSubtitleDelegate

Search for usage in LXR

SwitchSubtitleDelegate Class Reference

Inherits QtQuick::Controls::SwitchDelegate.

Properties

string subtitle
 

Detailed Description

A convenience wrapper combining QtQuick Controls SwitchDelegate and IconTitleSubtitle.

This is an intentionally minimal wrapper that replaces the SwitchDelegate's contentItem with an IconTitleSubtitle and adds a subtitle property.

If you wish to customize the layout further, create your own SwitchDelegate subclass with the contentItem: property set to the content of your choice. This can include IconTitleSubtitle inside a Layout, for example.

Note
If you don't need a subtitle, use SwitchDelegate directly.
See also
Kirigami::Delegates::TitleSubtitle
Kirigami::Delegates::IconTitleSubtitle

Definition at line 25 of file SwitchSubtitleDelegate.qml.

Property Documentation

◆ subtitle

string SwitchSubtitleDelegate::subtitle
read

The subtitle to display.

Definition at line 31 of file SwitchSubtitleDelegate.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 10 2024 11:44:36 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.