forked from eden-emu/eden
28 lines
578 B
QML
28 lines
578 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
|
|
import org.eden_emu.items
|
|
import org.eden_emu.config
|
|
import org.eden_emu.constants
|
|
|
|
BaseField {
|
|
contentItem: BetterTextField {
|
|
enabled: enable
|
|
|
|
Layout.fillWidth: true
|
|
Layout.rightMargin: 10 * Constants.scalar
|
|
|
|
inputMethodHints: Qt.ImhDigitsOnly
|
|
validator: IntValidator {
|
|
bottom: setting.min
|
|
top: setting.max
|
|
}
|
|
|
|
font.pixelSize: 15 * Constants.scalar
|
|
|
|
text: value
|
|
suffix: setting.suffix
|
|
|
|
onTextEdited: value = parseInt(text)
|
|
}
|
|
}
|