6#include <QtCore/qeasingcurve.h>
7#include <QtQuick/private/qquickitem_p.h>
8#include <QtQuick/private/qsgadaptationlayer_p.h>
9#include <QtQuickControls2Impl/private/qquickanimatednode_p.h>
29 const qreal spanRightEdgePos = availableWidth / 2 +
BlockSpan / 2.0;
47 bool m_indeterminate =
false;
48 qreal m_pixelsPerSecond = 0;
67 const qreal timeInSeconds =
time / 1000.0;
79 m.translate(restX, 0);
100 const qreal timeSinceOurKickoff = timeSinceSecondPhase - (thirdPhaseSubKickoff / 1000.0 *
i);
101 const qreal position = restX + (m_pixelsPerSecond * (timeSinceOurKickoff));
122 m_pixelsPerSecond =
item->width();
127 m.translate(0, (
item->height() -
item->implicitHeight()) / 2);
130 if (m_indeterminate) {
138 if (!transformNode) {
145 rectNode =
d->sceneGraphContext()->createInternalRectangleNode();
167 rectNode =
d->sceneGraphContext()->createInternalRectangleNode();
199 return m_indeterminate;
219 if (
color == m_color)
249#include "moc_qquickbasicprogressbar_p.cpp"
The QColor class provides colors based on RGB, HSV or CMYK values.
qreal valueForProgress(qreal progress) const
Return the effective progress for the easing curve at progress.
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
\inmodule QtCore\reentrant
void setLoopCount(int count)
void setDuration(int duration)
QQuickBasicProgressBarNode(QQuickBasicProgressBar *item)
void updateCurrentTime(int time) override
void sync(QQuickItem *item) override
bool isIndeterminate() const
void setIndeterminate(bool indeterminate)
void setColor(const QColor &color)
QQuickBasicProgressBar(QQuickItem *parent=nullptr)
void itemChange(ItemChange change, const ItemChangeData &data) override
Called when change occurs for this item.
void setProgress(qreal progress)
QSGNode * updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) override
Called on the render thread when it is time to sync the state of the item with the scene graph.
static QQuickItemPrivate * get(QQuickItem *item)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
void setFlag(Flag flag, bool enabled=true)
Enables the specified flag for this item if enabled is true; if enabled is false, the flag is disable...
qreal width
This property holds the width of this item.
virtual void itemChange(ItemChange, const ItemChangeData &)
Called when change occurs for this item.
qreal height
This property holds the height of this item.
ItemChange
Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes.
void update()
Schedules a call to updatePaintNode() for this item.
\inmodule QtCore\reentrant
virtual void setRect(const QRectF &rect)=0
virtual void setColor(const QColor &color)=0
\group qtquick-scenegraph-nodes \title Qt Quick Scene Graph Node classes
QSGNode * nextSibling() const
Returns the node after this in the parent's list of children.
int childCount() const
Returns the number of child nodes.
void appendChildNode(QSGNode *node)
Appends node to this node's list of children.
QSGNode * firstChild() const
Returns the first child of this node.
NodeType type() const
Returns the type of this node.
void removeAllChildNodes()
Removes all child nodes from this node's list of children.
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char * destination
constexpr const T & qMin(const T &a, const T &b)
GLsizei GLsizei GLfloat distance
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
static const int SecondPhaseStart
static const int BlockWidth
static const int ThirdPhaseStart
static const int BlockSpan
static const int QbpbTotalDuration
static qreal blockEndX(int blockIndex, qreal availableWidth)
static qreal blockRestX(int blockIndex, qreal availableWidth)
static QT_BEGIN_NAMESPACE const int Blocks
static qreal blockStartX(int blockIndex)
static const int BlockRestingSpacing
static const int BlockMovingSpacing
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent