cleaning comment and test
[qwp] / qml / qwp / content / Input.qml
diff --git a/qml/qwp/content/Input.qml b/qml/qwp/content/Input.qml
new file mode 100644 (file)
index 0000000..8e69415
--- /dev/null
@@ -0,0 +1,25 @@
+import QtQuick 1.0
+
+FocusScope {
+    id:container
+    x:2
+    width: menu.width-4
+    height: menu.height
+    BorderImage { source: "images/lineedit.sci"; anchors.fill: parent }
+    signal accepted
+    property alias text: input.text
+    property alias item:input
+    TextInput{
+        id: input
+        width: parent.width - 12
+        anchors.centerIn: parent
+        maximumLength:21
+        //font.pixelSize: 16;
+        font.bold: true
+        color: "#151515"; selectionColor: "mediumseagreen"
+        focus: true
+        onAccepted:{container.accepted()}
+        text: ""
+        selectByMouse: true
+    }
+}