| 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 | |
| 20 | QT_BEGIN_NAMESPACE |
| 21 | |
| 22 | class QQuickBusyIndicatorPrivate; |
| 23 | |
| 24 | class Q_QUICKTEMPLATES2_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 | |
| 31 | public: |
| 32 | explicit QQuickBusyIndicator(QQuickItem *parent = nullptr); |
| 33 | |
| 34 | bool isRunning() const; |
| 35 | void setRunning(bool running); |
| 36 | |
| 37 | Q_SIGNALS: |
| 38 | void runningChanged(); |
| 39 | |
| 40 | protected: |
| 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 | |
| 49 | private: |
| 50 | Q_DISABLE_COPY(QQuickBusyIndicator) |
| 51 | Q_DECLARE_PRIVATE(QQuickBusyIndicator) |
| 52 | }; |
| 53 | |
| 54 | QT_END_NAMESPACE |
| 55 | |
| 56 | #endif // QQUICKBUSYINDICATOR_P_H |
| 57 |
