FormSpinBoxDelegate QML Type

A Form delegate that corresponds to a spinbox. More...

Import Statement: import org.kde.kirigamiaddons.formcard
Inherits:

AbstractFormDelegate

Properties

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

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:

ConstantValue
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.


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.