Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquickmaterialbusyindicator_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QQUICKMATERIALBUSYINDICATOR_P_H
6
#
define
QQUICKMATERIALBUSYINDICATOR_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtGui
/
qcolor
.
h
>
20
#
include
<
QtQuick
/
qquickitem
.
h
>
21
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
22
23
QT_BEGIN_NAMESPACE
24
25
class
QQuickMaterialBusyIndicator :
public
QQuickItem
26
{
27
Q_OBJECT
28
Q_PROPERTY(QColor color READ color WRITE setColor FINAL)
29
Q_PROPERTY(
bool
running READ isRunning WRITE setRunning FINAL)
30
QML_NAMED_ELEMENT(BusyIndicatorImpl)
31
QML_ADDED_IN_VERSION(2, 0)
32
33
public
:
34
explicit
QQuickMaterialBusyIndicator(QQuickItem *parent =
nullptr
);
35
36
QColor color()
const
;
37
void
setColor(
const
QColor &color);
38
39
bool
isRunning()
const
;
40
void
setRunning(
bool
running);
41
42
int
elapsed()
const
;
43
44
protected
:
45
void
itemChange(ItemChange change,
const
ItemChangeData &data) override;
46
QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) override;
47
48
private
:
49
bool
m_running =
false
;
50
int
m_elapsed = 0;
51
QColor m_color = Qt::black;
52
};
53
54
QT_END_NAMESPACE
55
56
#
endif
// QQUICKMATERIALBUSYINDICATOR_P_H
QQuickMaterialBusyIndicatorNode
Definition
qquickmaterialbusyindicator.cpp:38
QQuickMaterialBusyIndicatorNode::updateCurrentTime
void updateCurrentTime(int time) override
Definition
qquickmaterialbusyindicator.cpp:74
QQuickMaterialBusyIndicatorNode::QQuickMaterialBusyIndicatorNode
QQuickMaterialBusyIndicatorNode(QQuickMaterialBusyIndicator *item)
Definition
qquickmaterialbusyindicator.cpp:56
QQuickMaterialBusyIndicatorNode::sync
void sync(QQuickItem *item) override
Definition
qquickmaterialbusyindicator.cpp:135
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
OneDegree
static const int OneDegree
Definition
qquickmaterialbusyindicator.cpp:33
RotationAnimationDuration
static const int RotationAnimationDuration
Definition
qquickmaterialbusyindicator.cpp:31
SpanAnimationDuration
static QT_BEGIN_NAMESPACE const int SpanAnimationDuration
Definition
qquickmaterialbusyindicator.cpp:30
MaxSweepSpan
static const qreal MaxSweepSpan
Definition
qquickmaterialbusyindicator.cpp:35
MinSweepSpan
static const qreal MinSweepSpan
Definition
qquickmaterialbusyindicator.cpp:34
TargetRotation
static const int TargetRotation
Definition
qquickmaterialbusyindicator.cpp:32
qtdeclarative
src
quickcontrols
material
impl
qquickmaterialbusyindicator_p.h
Generated on
for Qt by
1.18.0