add qml-elements
[mdictionary] / src / mdictionary / qml / MyTextLineEdit.qml
1 import Qt 4.7
2
3 Rectangle {
4     id: rectangle1
5     radius: 10
6     border.color: "#000666"
7
8
9     TextInput {
10         id: text_input1
11         width: rectangle1.width -20
12         height: rectangle1.height*0.6;
13         text: "textInput"
14         transformOrigin: Item.Left
15         anchors.centerIn: parent
16         selectByMouse: true;
17         font.pixelSize: rectangle1.height * .5;
18         onCursorPositionChanged:  moveCursorSelection(cursorPosition);
19     }
20 }