diff options
Diffstat (limited to 'src/quickcontrols/designer/TextFieldSpecifics.qml')
-rw-r--r-- | src/quickcontrols/designer/TextFieldSpecifics.qml | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/quickcontrols/designer/TextFieldSpecifics.qml b/src/quickcontrols/designer/TextFieldSpecifics.qml new file mode 100644 index 0000000000..54dcefb3b1 --- /dev/null +++ b/src/quickcontrols/designer/TextFieldSpecifics.qml @@ -0,0 +1,68 @@ +// Copyright (C) 2017 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +import QtQuick +import HelperWidgets +import QtQuick.Layouts + +Column { + width: parent.width + + Section { + width: parent.width + caption: qsTr("TextField") + + SectionLayout { + Label { + text: qsTr("Placeholder") + tooltip: qsTr("Placeholder text displayed when the editor is empty.") + } + SecondColumnLayout { + LineEdit { + backendValue: backendValues.placeholderText + Layout.fillWidth: true + } + + } + + Label { + text: qsTr("Hover") + tooltip: qsTr("Whether text field accepts hover events.") + } + SecondColumnLayout { + CheckBox { + text: backendValues.hoverEnabled.valueToString + backendValue: backendValues.hoverEnabled + Layout.fillWidth: true + } + } + } + } + + Section { + width: parent.width + caption: qsTr("Placeholder Text Color") + + ColorEditor { + caption: qsTr("Placeholder Text Color") + backendValue: backendValues.placeholderTextColor + supportGradient: false + } + } + + StandardTextSection { + width: parent.width + } + + FontSection { + width: parent.width + } + + PaddingSection { + width: parent.width + } + + InsetSection { + width: parent.width + } +} |