diff options
author | Jens Bache-Wiig <jensbw@gmail.com> | 2011-09-23 12:09:52 +0200 |
---|---|---|
committer | Jens Bache-Wiig <jensbw@gmail.com> | 2011-09-23 12:09:52 +0200 |
commit | 8bdc64e2057539aca9fed3583d7bccf02db1f51c (patch) | |
tree | 2785fa73700caa332cc6f128ef5ee26e1a3a8722 /components/custom/BasicButton.qml | |
parent | a54b057222b194f1d1d244c3bff162e5e537f074 (diff) | |
download | qtquickcontrols-8bdc64e2057539aca9fed3583d7bccf02db1f51c.tar.gz |
Added some basic functions
TextEdit append()
Button animateClick()
TextArea/TextEdit activeFocusOnClick
Diffstat (limited to 'components/custom/BasicButton.qml')
-rw-r--r-- | components/custom/BasicButton.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/components/custom/BasicButton.qml b/components/custom/BasicButton.qml index 1ac4b11c..52700fc2 100644 --- a/components/custom/BasicButton.qml +++ b/components/custom/BasicButton.qml @@ -25,6 +25,18 @@ Item { width: backgroundLoader.item.width height: backgroundLoader.item.height + function animateClick() { + behavior.pressed = true + behavior.clicked() + animateClickTimer.start() + } + + Timer { + id: animateClickTimer + interval: 250 + onTriggered: behavior.pressed = false + } + Loader { id: backgroundLoader anchors.fill: parent |