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
qquickbasicprogressbar.cpp File Reference

(b1d53c599921ee18ecf2b825b8f7edec8556b099)

#include "qquickbasicprogressbar_p.h"
#include <QtCore/qeasingcurve.h>
#include <QtQuick/private/qquickitem_p.h>
#include <QtQuick/private/qsgadaptationlayer_p.h>
#include <QtQuickControls2Impl/private/qquickanimatednode_p.h>
#include "moc_qquickbasicprogressbar_p.cpp"
+ Include dependency graph for qquickbasicprogressbar.cpp:

Go to the source code of this file.

Classes

class  QQuickBasicProgressBarNode
 

Functions

static qreal blockStartX (int blockIndex)
 
static qreal blockRestX (int blockIndex, qreal availableWidth)
 
static qreal blockEndX (int blockIndex, qreal availableWidth)
 

Variables

static QT_BEGIN_NAMESPACE const int Blocks = 4
 
static const int BlockWidth = 16
 
static const int BlockRestingSpacing = 4
 
static const int BlockMovingSpacing = 48
 
static const int BlockSpan = Blocks * (BlockWidth + BlockRestingSpacing) - BlockRestingSpacing
 
static const int QbpbTotalDuration = 4000
 
static const int SecondPhaseStart = QbpbTotalDuration * 0.4
 
static const int ThirdPhaseStart = QbpbTotalDuration * 0.6
 

Function Documentation

◆ blockEndX()

static qreal blockEndX ( int blockIndex,
qreal availableWidth )
inlinestatic

Definition at line 33 of file qquickbasicprogressbar.cpp.

References Blocks, blockStartX(), and BlockWidth.

Referenced by QQuickBasicProgressBarNode::updateCurrentTime().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ blockRestX()

static qreal blockRestX ( int blockIndex,
qreal availableWidth )
inlinestatic

Definition at line 27 of file qquickbasicprogressbar.cpp.

References BlockRestingSpacing, BlockSpan, and BlockWidth.

Referenced by QQuickBasicProgressBarNode::updateCurrentTime().

+ Here is the caller graph for this function:

◆ blockStartX()

static qreal blockStartX ( int blockIndex)
inlinestatic

Definition at line 22 of file qquickbasicprogressbar.cpp.

References BlockMovingSpacing, and BlockWidth.

Referenced by blockEndX(), QQuickBasicProgressBarNode::sync(), and QQuickBasicProgressBarNode::updateCurrentTime().

+ Here is the caller graph for this function:

Variable Documentation

◆ BlockMovingSpacing

const int BlockMovingSpacing = 48
static

◆ BlockRestingSpacing

const int BlockRestingSpacing = 4
static

Definition at line 15 of file qquickbasicprogressbar.cpp.

Referenced by blockRestX().

◆ Blocks

◆ BlockSpan

const int BlockSpan = Blocks * (BlockWidth + BlockRestingSpacing) - BlockRestingSpacing
static

Definition at line 17 of file qquickbasicprogressbar.cpp.

Referenced by blockRestX().

◆ BlockWidth

const int BlockWidth = 16
static

◆ QbpbTotalDuration

const int QbpbTotalDuration = 4000
static

◆ SecondPhaseStart

const int SecondPhaseStart = QbpbTotalDuration * 0.4
static

◆ ThirdPhaseStart

const int ThirdPhaseStart = QbpbTotalDuration * 0.6
static