Index: sources/gui/qml/components/TextEntry.qml =================================================================== diff -u -r16a8f25568b4636ebc31e76c86a8031940cc4ad7 -r9048646630717f980a852df54349805ba63773e0 --- sources/gui/qml/components/TextEntry.qml (.../TextEntry.qml) (revision 16a8f25568b4636ebc31e76c86a8031940cc4ad7) +++ sources/gui/qml/components/TextEntry.qml (.../TextEntry.qml) (revision 9048646630717f980a852df54349805ba63773e0) @@ -36,6 +36,8 @@ property alias text : _input.text property bool hasCursor : true property alias lengthMax : _input.maximumLength + property bool useQtNumPad : true + property bool showPlaceHolderText: false readonly property alias isValid : _input.acceptableInput @@ -63,7 +65,10 @@ if ( _root.hasCursor ) { _input.selectAll() } - _keyboard.setVisible(true) + + if (useQtNumPad) { + _keyboard.setVisible(true) + } } else { editingFinished() @@ -108,6 +113,17 @@ onFocusChanged : doFocus(focus) } + Text { id: _placeHolderText + text : Variables.emptyEntry + anchors.centerIn : _input + horizontalAlignment : Text.AlignRight + font.pixelSize : Fonts.fontPixelValueControl + color : Colors.offWhite + visible : _input.text.length === 0 && + ! _input.activeFocus && + _root.showPlaceHolderText + } + Line { id : _line visible : hasCursor color : Colors.borderButtonHalfDarker