Debian Codegraph @

rc/qml/Utility/DissolveAnimation.qml

raw
1 /*
2 * Copyright (C) 2011-2015 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Authors:
17 * Charles Lindsay <[email protected]>
18 */
19
20 import QtQuick 2.9
21
22 // Fades in the fadeInTarget while fading out the fadeOutTarget.
23 /*!
24 */
25 SequentialAnimation {
26 id: dissolveAnimation
27
28 /*!
29 */
30 property Item fadeInTarget
31 /*!
32 */
33 property Item fadeOutTarget
34 /*!
35 */
36 property int duration: 200
37 /*!
38 */
39 property int easingType: Easing.InQuad
40
41 ParallelAnimation {
42 FadeInAnimation {
43 target: fadeInTarget
44 duration: dissolveAnimation.duration
45 easingType: dissolveAnimation.easingType
46 }
47
48 FadeOutAnimation {
49 target: fadeOutTarget
50 duration: dissolveAnimation.duration
51 easingType: dissolveAnimation.easingType
52 }
53 }
54 }