Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickbusyindicator.cpp
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
5#include "qquickcontrol_p_p.h"
6
8
13
47{
48public:
49 bool running = true;
50};
51
56
68{
69 Q_D(const QQuickBusyIndicator);
70 return d->running;
71}
72
74{
76 if (d->running == running)
77 return;
78
79 d->running = running;
81}
82
83#if QT_CONFIG(quicktemplates2_multitouch)
85{
86 event->ignore(); // QTBUG-61785
87}
88#endif
89
90#if QT_CONFIG(accessibility)
91QAccessible::Role QQuickBusyIndicator::accessibleRole() const
92{
93 return QAccessible::Indicator;
94}
95#endif
96
98
99#include "moc_qquickbusyindicator_p.cpp"
Indicates background activity, for example, while content is being loaded.
void setRunning(bool running)
bool isRunning() const
\qmlproperty bool QtQuick.Controls::BusyIndicator::running
QQuickBusyIndicator(QQuickItem *parent=nullptr)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
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:917
Combined button and popup list for selecting options.
static Q_CONSTINIT QBasicAtomicInt running
struct _cl_event * event
#define emit