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
qquickmaterialprogressbar_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
QQUICKMATERIALPROGRESSBAR_P_H
6
#
define
QQUICKMATERIALPROGRESSBAR_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
QQuickMaterialProgressBar :
public
QQuickItem
26
{
27
Q_OBJECT
28
Q_PROPERTY(QColor color READ color WRITE setColor FINAL)
29
Q_PROPERTY(qreal progress READ progress WRITE setProgress FINAL)
30
Q_PROPERTY(
bool
indeterminate READ isIndeterminate WRITE setIndeterminate FINAL)
31
QML_NAMED_ELEMENT(ProgressBarImpl)
32
QML_ADDED_IN_VERSION(2, 0)
33
34
public
:
35
explicit
QQuickMaterialProgressBar(QQuickItem *parent =
nullptr
);
36
37
QColor color()
const
;
38
void
setColor(
const
QColor &color);
39
40
qreal progress()
const
;
41
void
setProgress(qreal progress);
42
43
bool
isIndeterminate()
const
;
44
void
setIndeterminate(
bool
indeterminate);
45
46
protected
:
47
void
itemChange(ItemChange change,
const
ItemChangeData &data) override;
48
QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) override;
49
50
private
:
51
QColor m_color = Qt::black;
52
qreal m_progress = 0.0;
53
bool
m_indeterminate =
false
;
54
};
55
56
QT_END_NAMESPACE
57
58
#
endif
// QQUICKMATERIALPROGRESSBAR_P_H
QQuickMaterialProgressBarNode
Definition
qquickmaterialprogressbar.cpp:23
QQuickMaterialProgressBarNode::updateCurrentTime
void updateCurrentTime(int time) override
Definition
qquickmaterialprogressbar.cpp:44
QQuickMaterialProgressBarNode::QQuickMaterialProgressBarNode
QQuickMaterialProgressBarNode(QQuickMaterialProgressBar *item)
Definition
qquickmaterialprogressbar.cpp:37
QQuickMaterialProgressBarNode::sync
void sync(QQuickItem *item) override
Definition
qquickmaterialprogressbar.cpp:67
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
SlideDuration
static const int SlideDuration
Definition
qquickmaterialprogressbar.cpp:19
PauseDuration
static QT_BEGIN_NAMESPACE const int PauseDuration
Definition
qquickmaterialprogressbar.cpp:18
QmpbTotalDuration
static const int QmpbTotalDuration
Definition
qquickmaterialprogressbar.cpp:20
qtdeclarative
src
quickcontrols
material
impl
qquickmaterialprogressbar_p.h
Generated on
for Qt by
1.18.0