diff options
Diffstat (limited to 'tests/auto/declarative/qmlvisual/qdeclarativetextinput/cursorDelegate.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/qdeclarativetextinput/cursorDelegate.qml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/auto/declarative/qmlvisual/qdeclarativetextinput/cursorDelegate.qml b/tests/auto/declarative/qmlvisual/qdeclarativetextinput/cursorDelegate.qml index 973462a..f2a34b7 100644 --- a/tests/auto/declarative/qmlvisual/qdeclarativetextinput/cursorDelegate.qml +++ b/tests/auto/declarative/qmlvisual/qdeclarativetextinput/cursorDelegate.qml @@ -1,5 +1,7 @@ import QtQuick 1.0 - Rectangle { +import "../shared" 1.0 + +Rectangle { resources: [ Component { id: cursorA Item { id: cPage; @@ -11,8 +13,8 @@ import QtQuick 1.0 Rectangle { id:bottom; color: "black"; width: 3; height: 1; x: -1; anchors.bottom: parent.bottom;} opacity: 1 SequentialAnimation on opacity { running: cPage.parent.focus == true; loops: Animation.Infinite; - NumberAnimation { properties: "opacity"; to: 1; duration: 500; easing.type: "InQuad"} - NumberAnimation { properties: "opacity"; to: 0; duration: 500; easing.type: "OutQuad"} + NumberAnimation { to: 1; duration: 500; easing.type: "InQuad"} + NumberAnimation { to: 0; duration: 500; easing.type: "OutQuad"} } } width: 1; @@ -22,7 +24,7 @@ import QtQuick 1.0 width: 400 height: 200 color: "white" - TextInput { id: mainText + TestTextInput { id: mainText text: "Hello World" cursorDelegate: cursorA focus: true |