FormSpinBoxDelegate QML Type
A Form delegate that corresponds to a spinbox. More...
| Import Statement: | import org.kde.kirigamiaddons.formcard |
| Inherits: |
Properties
- description : string
- displayText : string
- from : int
- label : string
- status : var
- statusMessage : string
- stepSize : int
- textFromValue : function
- to : int
- trailing : var
- validator : Validator
- value : int
- valueFromText : function
Methods
Detailed Description
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:
FormCard.FormCardHeader {
title: "Information"
}
FormCard.FormCard {
FormCard.FormSpinBoxDelegate {
label: "Amount"
}
}
Property Documentation
description : string [default: ""]
A label containing secondary text that appears under the inherited text property.
This provides additional information shown in a faint gray color.
displayText : string
This property holds the displayText of the internal spinbox.
from : int
This property holds the from of the internal spinbox.
label : string [required]
A label that appears above the spinbox.
status : var
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:
| Constant | Value |
|---|---|
Kirigami.MessageType.Information | |
Kirigami.MessageType.Positive | |
Kirigami.MessageType.Warning | |
Kirigami.MessageType.Error |
See also Kirigami.MessageType.
statusMessage : string [default: ""]
This property holds the current status message of the text field.
stepSize : int
This property holds the stepSize of the internal spinbox.
textFromValue : function
This property holds the textFromValue of the internal spinbox.
to : int
This property holds the to of the internal spinbox.
trailing : var [default: null]
This property holds an item that will be displayed after the delegate's contents.
validator : Validator
This property holds the validator of the internal spinbox.
value : int
This property holds the value of the internal spinbox.
valueFromText : function
This property holds the valueFromText of the internal spinbox.
Method Documentation
decrease()
Decreases the value by stepSize, or 1 if stepSize is not defined.
increase()
Increases the value by stepSize, or 1 if stepSize is not defined.