1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKBUSYINDICATOR_P_H
5#define QQUICKBUSYINDICATOR_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuickTemplates2/private/qquickcontrol_p.h>
19
20QT_BEGIN_NAMESPACE
21
22class QQuickBusyIndicatorPrivate;
23
24class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickBusyIndicator : public QQuickControl
25{
26 Q_OBJECT
27 Q_PROPERTY(bool running READ isRunning WRITE setRunning NOTIFY runningChanged FINAL)
28 QML_NAMED_ELEMENT(BusyIndicator)
29 QML_ADDED_IN_VERSION(2, 0)
30
31public:
32 explicit QQuickBusyIndicator(QQuickItem *parent = nullptr);
33
34 bool isRunning() const;
35 void setRunning(bool running);
36
37Q_SIGNALS:
38 void runningChanged();
39
40protected:
41#if QT_CONFIG(quicktemplates2_multitouch)
42 void touchEvent(QTouchEvent *event) override;
43#endif
44
45#if QT_CONFIG(accessibility)
46 QAccessible::Role accessibleRole() const override;
47#endif
48
49private:
50 Q_DISABLE_COPY(QQuickBusyIndicator)
51 Q_DECLARE_PRIVATE(QQuickBusyIndicator)
52};
53
54QT_END_NAMESPACE
55
56QML_DECLARE_TYPE(QQuickBusyIndicator)
57
58#endif // QQUICKBUSYINDICATOR_P_H
59

source code of qtdeclarative/src/quicktemplates/qquickbusyindicator_p.h