2025-06-16 19:05:20 -04:00
|
|
|
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
|
|
|
|
|
2025-06-16 20:46:40 -04:00
|
|
|
text: value
|
2025-06-16 19:05:20 -04:00
|
|
|
suffix: setting.suffix
|
|
|
|
|
2025-06-16 20:46:40 -04:00
|
|
|
onTextEdited: value = parseInt(text)
|
2025-06-16 19:05:20 -04:00
|
|
|
}
|
|
|
|
}
|