File: Spinner.qml

package info (click to toggle)
qt6-quick3d 6.9.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 142,620 kB
  • sloc: cpp: 388,193; ansic: 37,842; xml: 288; sh: 241; makefile: 32
file content (23 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick

Image {
    required property bool running

    id: root
    source: "images/circle.png"
    width: 30
    height: 30
    visible: running
    mirrorVertically: true

    RotationAnimation on rotation {
        loops: Animation.Infinite
        from: 0
        to: 360
        duration: 700
        easing.type: Easing.OutInQuad
        running: root.running
    }
}