2020-08-13 21:08:54 +02:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2010 Marco Martin <mart@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2013-09-04 11:42:40 +02:00
|
|
|
|
|
|
|
import QtQuick 1.0
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id:main
|
|
|
|
property int time: 0
|
|
|
|
property bool running: true
|
|
|
|
|
|
|
|
color: Qt.rgba(1,1,1,0.7)
|
|
|
|
radius: 10
|
|
|
|
smooth: true
|
|
|
|
|
|
|
|
width: childrenRect.width + 20
|
|
|
|
height: childrenRect.height + 20
|
|
|
|
Text {
|
|
|
|
x: 10
|
|
|
|
y: 10
|
|
|
|
text: "WIN!!!"
|
|
|
|
font.pointSize: 52
|
|
|
|
}
|
|
|
|
|
|
|
|
Behavior on y {
|
|
|
|
NumberAnimation {
|
|
|
|
target: main
|
|
|
|
property: "y"
|
|
|
|
duration: 1000
|
|
|
|
easing.type: "OutBounce"
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|