Index: sources/gui/qml/components/TextEntry.qml =================================================================== diff -u -rc1d0546e2d1a51ff919b2172ce647003359f0853 -r477c26a4e1dcbdf7ad0f29ae7a1df4738d4dcce2 --- sources/gui/qml/components/TextEntry.qml (.../TextEntry.qml) (revision c1d0546e2d1a51ff919b2172ce647003359f0853) +++ sources/gui/qml/components/TextEntry.qml (.../TextEntry.qml) (revision 477c26a4e1dcbdf7ad0f29ae7a1df4738d4dcce2) @@ -37,6 +37,7 @@ property bool hasCursor : true property alias lengthMax : _input.maximumLength property bool useQtNumPad : true + property bool showPlaceHolderText: false readonly property alias isValid : _input.acceptableInput @@ -108,6 +109,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