import QtQuick // A short line of text that names a key and what it does. Text { id: root required property Theme theme required property string hint required property bool shown color: root.theme.labelColor font.pixelSize: root.theme.hintSize text: root.hint opacity: root.shown && root.hint.length > 0 ? 1 : 0 visible: root.opacity > 0 Behavior on opacity { NumberAnimation { duration: root.theme.hintFadeDuration } } }