aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/quickcontrols/testbench/controls/TextField.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/quickcontrols/testbench/controls/TextField.qml')
-rw-r--r--tests/manual/quickcontrols/testbench/controls/TextField.qml26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/manual/quickcontrols/testbench/controls/TextField.qml b/tests/manual/quickcontrols/testbench/controls/TextField.qml
new file mode 100644
index 0000000000..205418f08c
--- /dev/null
+++ b/tests/manual/quickcontrols/testbench/controls/TextField.qml
@@ -0,0 +1,26 @@
+// Copyright (C) 2017 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+import QtQuick
+import QtQuick.Controls
+
+QtObject {
+ property var supportedStates: [
+ [],
+ ["disabled"],
+ ]
+
+ property Component component: Column {
+ spacing: 10
+
+ TextField {
+ text: "TextField with text"
+ enabled: !is("disabled")
+ }
+
+ TextField {
+ placeholderText: "TextField with placeholderText"
+ enabled: !is("disabled")
+ }
+ }
+}