// ekke (Ekkehard Gentz) @ekkescorner
import QtQuick 2.9
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2
import QtQuick.Controls.Material 2.2

TextField {
    id: valueText
    selectByMouse: true
    property int minValue: 0
    property int maxValue: 999
    validator: IntValidator{bottom: minValue; top: maxValue;}
    color: acceptableInput? Material.foreground : "Red"
    placeholderText: qsTr("%1...%2").arg(minValue).arg(maxValue)
    // ImhDigitsOnly: iOS: only digits, no . or , android: only allows digits and '.' but shows also + -
    inputMethodHints: Qt.ImhDigitsOnly
}
