FormSpinBoxDelegate
Properties | |
alias | displayText |
alias | from |
string | label |
var | status |
string | statusMessage |
alias | stepSize |
alias | textFromValue |
alias | to |
alias | validator |
alias | value |
alias | valueFromText |
Public Member Functions | |
void | decrease () |
void | increase () |
Detailed Description
A Form delegate that corresponds to a spinbox.
This component is used to select a number. By default, the spinbox will be initialized with a minimum of 0 and a maximum of 99.
Example code:
- Since
- KirigamiAddons 0.11.0
Definition at line 31 of file FormSpinBoxDelegate.qml.
Property Documentation
◆ displayText
|
read |
This property holds the displayText
of the internal spinbox.
Definition at line 65 of file FormSpinBoxDelegate.qml.
◆ from
|
read |
This property holds the from
of the internal spinbox.
Definition at line 45 of file FormSpinBoxDelegate.qml.
◆ label
|
read |
A label that appears above the spinbox.
Definition at line 37 of file FormSpinBoxDelegate.qml.
◆ status
|
read |
This property holds the current type of status displayed in the text field.
Depending on the status of the text field, the statusMessage property will look different
Accepted values:
- Kirigami.MessageType.Information
- Kirigami.MessageType.Positive
- Kirigami.MessageType.Warning
- Kirigami.MessageType.Error
- See also
- Kirigami.MessageType
Definition at line 85 of file FormSpinBoxDelegate.qml.
◆ statusMessage
|
read |
This property holds the current status message of the text field.
Definition at line 89 of file FormSpinBoxDelegate.qml.
◆ stepSize
|
read |
This property holds the stepSize
of the internal spinbox.
Definition at line 53 of file FormSpinBoxDelegate.qml.
◆ textFromValue
|
read |
This property holds the textFromValue
of the internal spinbox.
Definition at line 57 of file FormSpinBoxDelegate.qml.
◆ to
|
read |
This property holds the to
of the internal spinbox.
Definition at line 49 of file FormSpinBoxDelegate.qml.
◆ validator
|
read |
This property holds the validator
of the internal spinbox.
Definition at line 69 of file FormSpinBoxDelegate.qml.
◆ value
|
read |
This property holds the value
of the internal spinbox.
Definition at line 41 of file FormSpinBoxDelegate.qml.
◆ valueFromText
|
read |
This property holds the valueFromText
of the internal spinbox.
Definition at line 61 of file FormSpinBoxDelegate.qml.
Member Function Documentation
◆ decrease()
void FormSpinBoxDelegate::decrease | ( | ) |
Decreases the value by stepSize, or 1 if stepSize is not defined.
◆ increase()
void FormSpinBoxDelegate::increase | ( | ) |
Increases the value by stepSize, or 1 if stepSize is not defined.
The documentation for this class was generated from the following file:
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.