Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickbusyindicator_p.h
Go to the documentation of this file.
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
21
23
24class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickBusyIndicator : public QQuickControl
25{
27 Q_PROPERTY(bool running READ isRunning WRITE setRunning NOTIFY runningChanged FINAL)
28 QML_NAMED_ELEMENT(BusyIndicator)
30
31public:
32 explicit QQuickBusyIndicator(QQuickItem *parent = nullptr);
33
34 bool isRunning() const;
35 void setRunning(bool running);
36
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
55
57
58#endif // QQUICKBUSYINDICATOR_P_H
Indicates background activity, for example, while content is being loaded.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
virtual void touchEvent(QTouchEvent *event)
This event handler can be reimplemented in a subclass to receive touch events for an item.
The QTouchEvent class contains parameters that describe a touch event.
Definition qevent.h:916
Combined button and popup list for selecting options.
static Q_CONSTINIT QBasicAtomicInt running
struct _cl_event * event
#define QML_DECLARE_TYPE(TYPE)
Definition qqml.h:19
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
static bool isRunning()
Definition main.cpp:358
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent