Commit 252c234e authored by Bruno Coudoin's avatar Bruno Coudoin
Browse files

baby_wordprocessor, animate the cursor

parent 9ba1ae83
......@@ -92,8 +92,21 @@ ActivityBase {
wordSpacing: 10
}
cursorDelegate: Rectangle {
id: cursor
width: 10
color: 'red'
SequentialAnimation on opacity {
running: true
loops: Animation.Infinite
PropertyAnimation {
to: 0.2
duration: 1000
}
PropertyAnimation {
to: 1
duration: 1000
}
}
}
function insertText(text) {
edit.insert(cursorPosition, text)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment