RadioSelector

Search for usage in LXR

RadioSelector Class Reference

Properties

listTAction actions
 
bool consistentWidth
 
int selectedIndex
 

Detailed Description

A Component that allows sitching between multiple options.

Example:

Components.RadioSelector {
Kirigami.Action {
text: i18nc("@option:radio", "Week")
icon.name: "view-calendar-week-symbolic"
},
Kirigami.Action {
text: i18nc("@option:radio", "3 Days")
icon.name: "view-calendar-upcoming-days-symbolic"
},
Kirigami.Action {
text: i18nc("@option:radio", "1 Day")
icon.name: "view-calendar-day-symbolic"
}
]
}
bool consistentWidth
This property holds whether all the items should have the same width.
listTAction actions
This property holds a list of actions, each holding one of the options.
QString i18nc(const char *context, const char *text, const TYPE &arg...)
Since
Kirigami Addons 1.6.0.

Definition at line 34 of file RadioSelector.qml.

Property Documentation

◆ actions

listTAction RadioSelector::actions
read

This property holds a list of actions, each holding one of the options.

Definition at line 40 of file RadioSelector.qml.

◆ consistentWidth

bool RadioSelector::consistentWidth
read

This property holds whether all the items should have the same width.

Definition at line 45 of file RadioSelector.qml.

◆ selectedIndex

int RadioSelector::selectedIndex
read

This property holds the currently selected option.

By default, it's the first actions or -1 if no actions is set.

Definition at line 50 of file RadioSelector.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 Sat Dec 21 2024 17:03:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.