2022-05-13 13:12:05 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2013-06-24 09:17:09 +00:00
|
|
|
|
|
|
|
#ifndef SPINNER_H
|
|
|
|
#define SPINNER_H
|
|
|
|
|
|
|
|
#include <QtQuick/QQuickItem>
|
|
|
|
|
|
|
|
class Spinner : public QQuickItem
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
Q_PROPERTY(bool spinning READ spinning WRITE setSpinning NOTIFY spinningChanged)
|
2019-08-21 16:34:21 +00:00
|
|
|
QML_ELEMENT
|
2013-06-24 09:17:09 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
Spinner();
|
|
|
|
|
|
|
|
bool spinning() const { return m_spinning; }
|
|
|
|
void setSpinning(bool spinning);
|
|
|
|
|
|
|
|
protected:
|
2021-06-30 09:31:03 +00:00
|
|
|
QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) override;
|
2013-06-24 09:17:09 +00:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void spinningChanged();
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool m_spinning;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SQUIRCLE_H
|