From 5f3b82e26a883c0c348030d85149a6973c642c3f Mon Sep 17 00:00:00 2001
From: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Date: Tue, 27 Apr 2010 16:28:48 +0200
Subject: [PATCH] QmlDesigner.propertyEditor support for echoMode

---
 .../propertyeditor/Qt/TextInputGroupBox.qml   | 36 ++++++++++++++++++-
 1 file changed, 35 insertions(+), 1 deletion(-)

diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/TextInputGroupBox.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/TextInputGroupBox.qml
index 9dda196f5ef..ecdc849b7c2 100644
--- a/share/qtcreator/qmldesigner/propertyeditor/Qt/TextInputGroupBox.qml
+++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/TextInputGroupBox.qml
@@ -13,7 +13,7 @@ GroupBox {
             visible: isTextInput
             layout: HorizontalLayout {
 
-                Label {text: "Input Mask"}
+                Label {text: qsTr("Input Mask") }
 
                 LineEdit {
                     backendValue: backendValues.inputMask
@@ -22,6 +22,40 @@ GroupBox {
             }
         }
 
+        QWidget {
+            visible: isTextInput
+            layout: HorizontalLayout {
+
+                Label {text: "Echo Mode"}
+
+                ComboBox {
+                    baseStateFlag: isBaseState
+                    items : { ["Normal", "Password", "PasswordEchoOnEdit", "NoEcho"] }
+                    currentText: backendValues.echoMode.value;
+                    onItemsChanged: {
+                        currentText =  backendValues.echoMode.value;
+                    }
+                    backendValue: backendValues.echoMode
+                }
+            }
+        }
+
+        QWidget {
+            visible: isTextInput
+            layout: HorizontalLayout {
+
+                Label {
+                    text: qsTr("Pass. Char")
+                    toolTip: qsTr("Password Character")
+                }
+
+                LineEdit {
+                    backendValue: backendValues.passwordCharacter
+                    baseStateFlag: isBaseState
+                }
+            }
+        }
+
         QWidget {
             layout: HorizontalLayout {
                 Label {text: qsTr("Flags") }
-- 
GitLab