aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/studiowelcome/qml/splashscreen/Image2.qml
blob: 23b245587ebeb475d5bdb9cf9d61a99455464a2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

import QtQuick 2.0
import QtQuick.Timeline 1.0

Item {
    width: 174
    height: 200

    Image {
        id: image2
        x: 93
        y: 133
        source: "welcome_windows/splash_pngs/ring_1_out.png"

        Image {
            id: image1
            x: 13
            y: 13
            source: "welcome_windows/splash_pngs/ring_1_in.png"
        }
    }

    Image {
        id: image3
        x: 13
        y: 72
        source: "welcome_windows/splash_pngs/ring_2.png"
    }

    Image {
        id: image4
        x: 73
        y: 44
        source: "welcome_windows/splash_pngs/ring_line_2.png"
    }

    Image {
        id: image5
        x: 103
        y: 13
        source: "welcome_windows/splash_pngs/ring_3.png"
    }

    Timeline {
        id: timeline
        startFrame: 0
        enabled: true
        endFrame: 1000

        KeyframeGroup {
            target: image1
            property: "scale"

            Keyframe {
                value: 0.01
                frame: 0
            }

            Keyframe {
                value: 1
                frame: 200
            }
        }

        KeyframeGroup {
            target: image2
            property: "scale"

            Keyframe {
                value: 0.01
                frame: 70
            }

            Keyframe {
                value: 1
                frame: 300
            }
        }

        KeyframeGroup {
            target: image3
            property: "scale"

            Keyframe {
                value: 0.01
                frame: 300
            }

            Keyframe {
                value: 1
                frame: 555
            }
        }

        KeyframeGroup {
            target: image5
            property: "scale"

            Keyframe {
                value: 0.01
                frame: 555
            }

            Keyframe {
                value: 1
                frame: 820
            }
        }
    }

    PropertyAnimation {
        id: propertyAnimation
        target: timeline
        property: "currentFrame"
        running: true
        loops: -1
        duration: 1000
        from: timeline.startFrame
        to: timeline.endFrame
    }

    Image {
        id: image
        x: 46
        y: 105
        source: "welcome_windows/splash_pngs/ring_line_1.png"
    }
}