IconTitleSubtitle

Search for usage in LXR

IconTitleSubtitle Class Reference

Properties

alias color
 
alias elide
 
alias font
 
KTPIconPropertiesGroup icon
 
alias reserveSpaceForSubtitle
 
alias selected
 
alias subtitle
 
alias subtitleColor
 
alias subtitleFont
 
string title
 
alias truncated
 
alias wrapMode
 

Signals

void linkActivated (string link)
 
void linkHovered (string link)
 

Detailed Description

A simple item containing an icon, title and subtitle.

This is an extension of TitleSubtitle that adds an icon to the side. It is intended as a contentItem for ItemDelegate and related controls.

When using it as a contentItem, make sure to bind the appropriate properties to those of the Control. Prefer binding to the Control's properties over setting the properties directly, as the Control's properties may affect other things like setting accessible names.

This (and TitleSubtitle) can be combined with other controls in a layout to create complex content items for controls.

Example usage creating a CheckDelegate with an extra button on the side:

CheckDelegate {
id: delegate
text: "Example"
icon.name: "document-new"
contentItem: RowLayout {
spacing: Kirigami.Units.smallSpacing
Kirigami.IconTitleSubtitle {
Layout.fillWidth: true
icon: icon.fromControlsIcon(delegate.icon)
title: delegate.text
selected: delegate.highlighted || delegate.down
font: delegate.font
}
icon.name: "document-open"
text: "Extra Action"
}
}
}
KTPIconPropertiesGroup icon
Grouped property for icon properties.
See also
Kirigami::Delegates::TitleSubtitle
Kirigami::Delegates::ItemDelegate

Definition at line 58 of file IconTitleSubtitle.qml.

Property Documentation

◆ color

alias IconTitleSubtitle::color
read

Definition at line 71 of file IconTitleSubtitle.qml.

◆ elide

alias IconTitleSubtitle::elide
read

Definition at line 95 of file IconTitleSubtitle.qml.

◆ font

alias IconTitleSubtitle::font
read

Definition at line 79 of file IconTitleSubtitle.qml.

◆ icon

KTPIconPropertiesGroup IconTitleSubtitle::icon
read

Grouped property for icon properties.

Note
By default, IconTitleSubtitle will reserve the space for the icon, even if it is not set. To remove that space, set icon.width to 0.

Definition at line 110 of file IconTitleSubtitle.qml.

◆ reserveSpaceForSubtitle

alias IconTitleSubtitle::reserveSpaceForSubtitle
read

Definition at line 87 of file IconTitleSubtitle.qml.

◆ selected

alias IconTitleSubtitle::selected
read

Definition at line 91 of file IconTitleSubtitle.qml.

◆ subtitle

alias IconTitleSubtitle::subtitle
read

Definition at line 67 of file IconTitleSubtitle.qml.

◆ subtitleColor

alias IconTitleSubtitle::subtitleColor
read

Definition at line 75 of file IconTitleSubtitle.qml.

◆ subtitleFont

alias IconTitleSubtitle::subtitleFont
read

Definition at line 83 of file IconTitleSubtitle.qml.

◆ title

string IconTitleSubtitle::title
read

Definition at line 63 of file IconTitleSubtitle.qml.

◆ truncated

alias IconTitleSubtitle::truncated
read

Definition at line 103 of file IconTitleSubtitle.qml.

◆ wrapMode

alias IconTitleSubtitle::wrapMode
read

Definition at line 99 of file IconTitleSubtitle.qml.

Member Function Documentation

◆ linkActivated

void IconTitleSubtitle::linkActivated ( string link)
signal

◆ linkHovered

void IconTitleSubtitle::linkHovered ( string link)
signal


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 Dec 20 2024 11:51:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.