aboutsummaryrefslogtreecommitdiffstats
path: root/qml/TextField.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/TextField.qml')
-rw-r--r--qml/TextField.qml41
1 files changed, 41 insertions, 0 deletions
diff --git a/qml/TextField.qml b/qml/TextField.qml
new file mode 100644
index 0000000..1d3c12d
--- /dev/null
+++ b/qml/TextField.qml
@@ -0,0 +1,41 @@
+import QtQuick 1.1
+
+Rectangle {
+
+ id: textField
+
+ property alias text: textInput.text
+
+ //width: 100
+ //height: 62
+
+ //Rectangle {
+ // id: rectangle4
+ width: 114
+ height: 28
+ color: "#ffffff"
+ radius: 3
+ border.width: 1
+ border.color: "#999999"
+ //}
+
+
+
+ TextInput {
+ id: textInput
+ width: 102
+ height: 20
+ color: "#151515"
+ text: parent.text
+ selectionColor: "#008000"
+ font.pixelSize: 12
+ anchors.centerIn:parent
+ //onActiveFocusChanged: rectangle4.border.color = "#0000ff";
+ onActiveFocusChanged: {
+ if (textInput.activeFocus)
+ parent.border.color = "#0000ff";
+ else
+ parent.border.color = "#999999";
+ }
+ }
+}