QSkinny 0.8.0
C++/Qt UI toolkit
|
Base class for progress indicators. More...
#include <QskProgressIndicator.h>
Base class for progress indicators.
QskProgressIndicator is the base class for circular (QskProgressRing) and linear (QskProgressBar) progress indicators, and should not be instantiated directly.
There are two modes for progress indicators:
By default progress indicators are determinate.
Definition at line 13 of file QskProgressIndicator.h.
Public Slots | |
void | setValue (qreal) |
void | setValueAsRatio (qreal) |
void | setOrigin (qreal) |
![]() | |
void | setMinimum (qreal) |
void | setMaximum (qreal) |
void | setBoundaries (const QskIntervalF &) |
![]() | |
void | setLocale (const QLocale &) |
![]() | |
void | setGeometry (const QRectF &) |
void | show () |
void | hide () |
void | setHidden (bool) |
void | setDisabled (bool) |
void | resetImplicitSize () |
Signals | |
void | extentChanged (qreal) |
void | indeterminateChanged (bool) |
void | valueChanged (qreal) |
void | originChanged (qreal) |
![]() | |
void | minimumChanged (qreal) |
void | maximumChanged (qreal) |
void | boundariesChanged (const QskIntervalF &) |
![]() | |
void | backgroundChanged () |
void | sectionChanged (QskAspect::Section) |
void | marginsChanged (const QMarginsF &) |
void | focusIndicatorRectChanged () |
void | localeChanged (const QLocale &) |
![]() | |
void | wheelEnabledChanged (bool) |
void | itemFlagsChanged () |
void | updateFlagsChanged (UpdateFlags) |
Public Member Functions | |
QskProgressIndicator (QQuickItem *parent=nullptr) | |
QskProgressIndicator (qreal min, qreal max, QQuickItem *parent=nullptr) | |
QskProgressIndicator (const QskIntervalF &, QQuickItem *parent=nullptr) | |
~QskProgressIndicator () override | |
bool | isIndeterminate () const |
void | setIndeterminate (bool on=true) |
void | setFillGradient (const QskGradient &) |
void | resetFillGradient () |
QskGradient | fillGradient () const |
void | setExtent (qreal) |
void | resetExtent () |
qreal | extent () const |
void | resetOrigin () |
qreal | origin () const |
bool | hasOrigin () const |
qreal | value () const |
qreal | valueAsRatio () const |
qreal | valueAsRatio (qreal) const |
![]() | |
qreal | minimum () const |
qreal | maximum () const |
qreal | boundaryLength () const |
void | setBoundaries (qreal min, qreal max) |
QskIntervalF | boundaries () const |
qreal | boundedValue (qreal) const |
qreal | valueAsRatio (qreal) const |
qreal | valueFromRatio (qreal) const |
![]() | |
QskControl (QQuickItem *parent=nullptr) | |
~QskControl () override | |
void | setMargins (qreal) |
void | setMargins (qreal, qreal, qreal, qreal) |
void | setMargins (const QMarginsF &) |
void | resetMargins () |
QMarginsF | margins () const |
void | setBackground (const QskGradient &) |
void | resetBackground () |
QskGradient | background () const |
void | setBackgroundColor (const QColor &) |
QRectF | contentsRect () const |
QRectF | layoutRect () const |
virtual QRectF | layoutRectForSize (const QSizeF &) const |
virtual QRectF | focusIndicatorRect () const |
virtual QRectF | focusIndicatorClipRect () const |
QRectF | subControlRect (QskAspect::Subcontrol) const |
QRectF | subControlRect (const QSizeF &, QskAspect::Subcontrol) const |
QRectF | subControlContentsRect (QskAspect::Subcontrol) const |
QRectF | subControlContentsRect (const QSizeF &, QskAspect::Subcontrol) const |
void | setAutoLayoutChildren (bool) |
bool | autoLayoutChildren () const |
void | setSection (QskAspect::Section) |
void | resetSection () |
QskAspect::Section | section () const override final |
void | setSizePolicy (QskSizePolicy) |
void | setSizePolicy (QskSizePolicy::Policy, QskSizePolicy::Policy) |
void | setSizePolicy (Qt::Orientation, QskSizePolicy::Policy) |
QskSizePolicy | sizePolicy () const |
QskSizePolicy::Policy | sizePolicy (Qt::Orientation) const |
void | setLayoutAlignmentHint (Qt::Alignment) |
Qt::Alignment | layoutAlignmentHint () const |
void | setPlacementPolicy (QskPlacementPolicy) |
void | setPlacementPolicy (QskPlacementPolicy::Policy, QskPlacementPolicy::Policy) |
void | setPlacementPolicy (Qsk::Visibilities, QskPlacementPolicy::Policy) |
void | resetPlacementPolicy () |
QskPlacementPolicy | placementPolicy () const |
QskPlacementPolicy::Policy | placementPolicy (Qsk::Visibility) const |
QskPlacementPolicy::Policy | effectivePlacementPolicy () const |
bool | isVisibleToLayout () const |
void | setMinimumSize (const QSizeF &) |
void | setMinimumSize (qreal width, qreal height) |
void | setMinimumWidth (qreal width) |
void | setMinimumHeight (qreal height) |
void | setMaximumSize (const QSizeF &) |
void | setMaximumSize (qreal width, qreal height) |
void | setMaximumWidth (qreal width) |
void | setMaximumHeight (qreal height) |
void | setPreferredSize (const QSizeF &) |
void | setPreferredSize (qreal width, qreal height) |
void | setPreferredWidth (qreal width) |
void | setPreferredHeight (qreal height) |
void | setFixedSize (const QSizeF &) |
void | setFixedSize (qreal width, qreal height) |
void | setFixedWidth (qreal width) |
void | setFixedHeight (qreal height) |
void | setExplicitSizeHint (Qt::SizeHint, const QSizeF &) |
void | setExplicitSizeHint (Qt::SizeHint, qreal width, qreal height) |
void | resetExplicitSizeHint (Qt::SizeHint) |
QSizeF | minimumSize () const |
QSizeF | maximumSize () const |
QSizeF | preferredSize () const |
QSizeF | explicitSizeHint (Qt::SizeHint) const |
QSizeF | implicitSizeHint (Qt::SizeHint, const QSizeF &constraint) const |
QSizeF | sizeHint () const |
qreal | heightForWidth (qreal width) const |
qreal | widthForHeight (qreal height) const |
QSizeF | effectiveSizeHint (Qt::SizeHint, const QSizeF &constraint=QSizeF()) const |
QSizeF | sizeConstraint (Qt::SizeHint, const QSizeF &constraint=QSizeF()) const |
QSizeF | sizeConstraint () const |
QLocale | locale () const |
void | resetLocale () |
QVector< QskAspect::Subcontrol > | subControls () const |
QRectF | subControlRect (const QRectF &, QskAspect::Subcontrol) const |
Calculate position and size of a subControl. | |
QRectF | subControlContentsRect (const QRectF &, QskAspect::Subcontrol) const |
Calculate the inner rectangle for subControl. | |
![]() | |
const char * | className () const |
bool | isVisibleTo (const QQuickItem *) const |
bool | isVisibleToParent () const |
bool | hasChildItems () const |
QRectF | rect () const |
QSizeF | implicitSize () const |
void | setGeometry (qreal x, qreal y, qreal width, qreal height) |
void | setGeometry (const QPointF &, const QSizeF &) |
QRectF | geometry () const |
void | setPosition (qreal x, qreal y) |
void | setSize (qreal width, qreal height) |
void | setPolishOnResize (bool) |
bool | polishOnResize () const |
void | setPolishOnParentResize (bool) |
bool | polishOnParentResize () const |
void | setTabFence (bool) |
bool | isTabFence () const |
void | setWheelEnabled (bool) |
bool | isWheelEnabled () const |
void | setLayoutMirroring (bool on, bool childrenInherit=false) |
void | resetLayoutMirroring () |
bool | layoutMirroring () const |
void | resetUpdateFlags () |
UpdateFlags | updateFlags () const |
void | setUpdateFlag (UpdateFlag, bool on=true) |
void | resetUpdateFlag (UpdateFlag) |
bool | testUpdateFlag (UpdateFlag) const |
void | classBegin () override |
void | componentComplete () override |
void | releaseResources () override |
bool | isPolishScheduled () const |
bool | isUpdateNodeScheduled () const |
bool | isInitiallyPainted () const |
bool | maybeUnresized () const |
![]() | |
QskSkinnable () | |
virtual | ~QskSkinnable () |
void | setSkinlet (const QskSkinlet *) |
Set an individual skinlet to render/display the content. | |
const QskSkinlet * | skinlet () const |
QFont | effectiveFont (QskAspect) const |
qreal | effectiveFontHeight (QskAspect) const |
QskColorFilter | effectiveGraphicFilter (QskAspect::Subcontrol) const |
void | setSubcontrolProxy (QskAspect::Subcontrol, QskAspect::Subcontrol proxy) |
void | resetSubcontrolProxy (QskAspect::Subcontrol) |
QskAspect::Subcontrol | subcontrolProxy (QskAspect::Subcontrol) const |
bool | setAnimationHint (QskAspect, QskAnimationHint) |
QskAnimationHint | animationHint (QskAspect, QskSkinHintStatus *=nullptr) const |
bool | hasAnimationHint (QskAspect) const |
bool | setSkinHint (QskAspect, const QVariant &) |
Insert a hint into the local hint table. | |
bool | resetSkinHint (QskAspect) |
Remove a hint from the local hint table. | |
bool | moveSkinHint (QskAspect, const QVariant &) |
bool | moveSkinHint (QskAspect, const QVariant &, const QVariant &) |
QskAnimationHint | effectiveAnimation (QskAspect::Type, QskAspect::Subcontrol, QskAspect::States, QskSkinHintStatus *status=nullptr) const |
QVariant | effectiveSkinHint (QskAspect, QskSkinHintStatus *=nullptr) const |
Find the value for a specific aspect. | |
virtual QskAspect::Variation | effectiveVariation () const |
QskSkinHintStatus | hintStatus (QskAspect) const |
QRectF | subControlRect (const QRectF &, QskAspect::Subcontrol) const |
Calculate position and size of a subControl. | |
QRectF | subControlContentsRect (const QRectF &, QskAspect::Subcontrol) const |
Calculate the inner rectangle for subControl. | |
QSizeF | outerBoxSize (QskAspect, const QSizeF &innerBoxSize) const |
Calculate the size, when being expanded by paddings, indentations. | |
QSizeF | innerBoxSize (QskAspect, const QSizeF &outerBoxSize) const |
Calculate the size, with paddings, indentations being subtracted. | |
QRectF | innerBox (QskAspect, const QRectF &outerBox) const |
Calculate the rectangle, whith paddings, indentations being subtracted. | |
QRectF | outerBox (QskAspect, const QRectF &innerBox) const |
Calculate the rectangle, when being expanded by paddings, indentations. | |
QMarginsF | innerPadding (QskAspect, const QSizeF &) const |
Calculate the padding from attributes for the given aspect. | |
const QskSkinlet * | effectiveSkinlet () const |
QskSkin * | effectiveSkin () const |
void | startTransition (QskAspect, QskAnimationHint, const QVariant &from, const QVariant &to) |
void | startTransition (QskAspect, int index, QskAnimationHint, const QVariant &from, const QVariant &to) |
QskAspect::Subcontrol | effectiveSubcontrol (QskAspect::Subcontrol) const |
QskControl * | controlCast () |
const QskControl * | controlCast () const |
virtual const QMetaObject * | metaObject () const =0 |
void | debug (QskAspect) const |
void | debug (QskAspect::State) const |
void | debug (QDebug, QskAspect) const |
void | debug (QDebug, QskAspect::State) const |
void | setSkinStates (QskAspect::States) |
void | setSkinStateFlag (QskAspect::State, bool on=true) |
void | addSkinStates (QskAspect::States) |
void | clearSkinStates (QskAspect::States) |
bool | hasSkinState (QskAspect::State) const |
QskAspect::States | skinStates () const |
const char * | skinStatesAsPrintable () const |
const char * | skinStatesAsPrintable (QskAspect::States) const |
bool | setColor (QskAspect, Qt::GlobalColor) |
Sets a color hint. | |
bool | setColor (QskAspect, QRgb) |
Sets a color hint. | |
bool | setColor (QskAspect, const QColor &) |
Sets a color hint. | |
bool | moveColor (QskAspect, Qt::GlobalColor) |
bool | moveColor (QskAspect, QRgb) |
bool | moveColor (QskAspect, const QColor &) |
bool | resetColor (QskAspect) |
Removes a color hint from the local table. | |
QColor | color (QskAspect, QskSkinHintStatus *=nullptr) const |
Retrieves a color hint. | |
bool | setMetric (QskAspect, qreal) |
Sets a metric hint. | |
bool | moveMetric (QskAspect, qreal) |
bool | resetMetric (QskAspect) |
Removes a metric hint from the local table. | |
qreal | metric (QskAspect, QskSkinHintStatus *=nullptr) const |
qreal | metric (QskAspect, qreal defaultValue) const |
bool | setFlagHint (QskAspect, int flag) |
Sets a flag hint. | |
template<typename T > | |
T | flagHint (QskAspect, T=T()) const |
Retrieves a flag hint. | |
bool | setPositionHint (QskAspect, qreal) |
bool | movePositionHint (QskAspect, qreal) |
bool | movePositionHint (QskAspect, qreal from, qreal to) |
bool | resetPositionHint (QskAspect) |
qreal | positionHint (QskAspect, QskSkinHintStatus *=nullptr) const |
bool | setStrutSizeHint (QskAspect, const QSizeF &) |
Sets a metric hint. | |
bool | setStrutSizeHint (QskAspect, qreal width, qreal height) |
Sets a strut size hint. | |
bool | resetStrutSizeHint (QskAspect) |
Removes a strut size hint from the local table. | |
QSizeF | strutSizeHint (QskAspect, QskSkinHintStatus *=nullptr) const |
Retrieves a strut size hint. | |
bool | setMarginHint (QskAspect, qreal) |
Sets a margin hint. | |
bool | setMarginHint (QskAspect, const QMarginsF &) |
Sets a margin hint. | |
bool | resetMarginHint (QskAspect) |
Removes a margin hint from the local table. | |
QMarginsF | marginHint (QskAspect, QskSkinHintStatus *=nullptr) const |
Retrieves a margin hint. | |
bool | setPaddingHint (QskAspect, qreal) |
Sets a padding hint. | |
bool | setPaddingHint (QskAspect, const QMarginsF &) |
Sets a padding hint. | |
bool | resetPaddingHint (QskAspect) |
Removes a padding hint from the local table. | |
QMarginsF | paddingHint (QskAspect, QskSkinHintStatus *=nullptr) const |
Retrieves a padding hint. | |
bool | setGradientHint (QskAspect, const QskGradient &) |
Sets a gradient as color hint. | |
QskGradient | gradientHint (QskAspect, QskSkinHintStatus *=nullptr) const |
Retrieves a color hint as gradient. | |
bool | setBoxShapeHint (QskAspect, const QskBoxShapeMetrics &) |
Sets a shape hint. | |
bool | resetBoxShapeHint (QskAspect) |
Removes a shape hint from the local table. | |
QskBoxShapeMetrics | boxShapeHint (QskAspect, QskSkinHintStatus *=nullptr) const |
Retrieves a shape hint. | |
bool | setBoxBorderMetricsHint (QskAspect, const QskBoxBorderMetrics &) |
Sets a border metrics hint. | |
bool | resetBoxBorderMetricsHint (QskAspect) |
Removes a border metrics hint from the local table. | |
QskBoxBorderMetrics | boxBorderMetricsHint (QskAspect, QskSkinHintStatus *=nullptr) const |
Retrieves a border hint. | |
bool | setBoxBorderColorsHint (QskAspect, const QskBoxBorderColors &) |
Sets a border colors hint. | |
bool | resetBoxBorderColorsHint (QskAspect) |
Removes a border colors hint from the local table. | |
QskBoxBorderColors | boxBorderColorsHint (QskAspect, QskSkinHintStatus *=nullptr) const |
Retrieves border colors hint. | |
bool | setShadowMetricsHint (QskAspect, const QskShadowMetrics &) |
bool | resetShadowMetricsHint (QskAspect) |
QskShadowMetrics | shadowMetricsHint (QskAspect, QskSkinHintStatus *=nullptr) const |
bool | setShadowColorHint (QskAspect, const QColor &) |
bool | resetShadowColorHint (QskAspect) |
QColor | shadowColorHint (QskAspect, QskSkinHintStatus *=nullptr) const |
QskBoxHints | boxHints (QskAspect) const |
bool | setArcMetricsHint (QskAspect, const QskArcMetrics &) |
bool | resetArcMetricsHint (QskAspect) |
QskArcMetrics | arcMetricsHint (QskAspect, QskSkinHintStatus *=nullptr) const |
bool | setStippleMetricsHint (QskAspect, const QskStippleMetrics &) |
bool | resetStippleMetricsHint (QskAspect) |
QskStippleMetrics | stippleMetricsHint (QskAspect, QskSkinHintStatus *=nullptr) const |
bool | setSpacingHint (QskAspect, qreal) |
Sets a spacing hint. | |
bool | resetSpacingHint (QskAspect) |
Removes a spacing hint from the local table. | |
qreal | spacingHint (QskAspect, QskSkinHintStatus *=nullptr) const |
Retrieves a spacing hint. | |
bool | setAlignmentHint (QskAspect, Qt::Alignment) |
Sets an alignment hint. | |
bool | resetAlignmentHint (QskAspect) |
Removes an alignment hint from the local table. | |
Qt::Alignment | alignmentHint (QskAspect, Qt::Alignment=Qt::Alignment()) const |
Retrieves an alignment hint. | |
bool | setTextOptionsHint (QskAspect, const QskTextOptions &) |
bool | resetTextOptionsHint (QskAspect) |
QskTextOptions | textOptionsHint (QskAspect, QskSkinHintStatus *=nullptr) const |
bool | setFontRoleHint (QskAspect, const QskFontRole &) |
Sets a font role hint. | |
bool | resetFontRoleHint (QskAspect) |
Removes a font role hint from the local table. | |
QskFontRole | fontRoleHint (QskAspect, QskSkinHintStatus *=nullptr) const |
Retrieves a font role hint. | |
bool | setGraphicRoleHint (QskAspect, int role) |
Sets a graphic role hint. | |
bool | resetGraphicRoleHint (QskAspect) |
Removes a graphic role hint from the local table. | |
int | graphicRoleHint (QskAspect, QskSkinHintStatus *=nullptr) const |
A Retrieves a graphic role hint. | |
bool | setSymbolHint (const QskAspect, const QskGraphic &) |
bool | resetSymbolHint (const QskAspect) |
QskGraphic | symbolHint (const QskAspect, QskSkinHintStatus *=nullptr) const |
const QskSkinHintTable & | hintTable () const |
Accessor for local skin hint table. | |
bool | startHintTransitions (QskAspect::States, QskAspect::States, int index=-1) |
bool | startHintTransitions (const QVector< QskAspect::Subcontrol > &, QskAspect::States, QskAspect::States, int index=-1) |
const QskHintAnimator * | runningHintAnimator (QskAspect, int index=-1) const |
Static Public Attributes | |
static const QskAspect::Subcontrol | Groove |
static const QskAspect::Subcontrol | Fill |
![]() | |
static const QskAspect::Subcontrol | Background |
static const QskAspect::State | Disabled |
static const QskAspect::State | Hovered |
static const QskAspect::State | Focused |
Protected Member Functions | |
void | componentComplete () override |
void | itemChange (ItemChange, const ItemChangeData &) override |
![]() | |
QskBoundedControl (QQuickItem *parent=nullptr) | |
QskBoundedControl (qreal min, qreal max, QQuickItem *parent=nullptr) | |
void | componentComplete () override |
![]() | |
bool | event (QEvent *) override |
virtual void | gestureEvent (QskGestureEvent *) |
void | hoverEnterEvent (QHoverEvent *) override |
void | hoverLeaveEvent (QHoverEvent *) override |
bool | childMouseEventFilter (QQuickItem *, QEvent *) override |
void | itemChange (ItemChange, const ItemChangeData &) override |
void | geometryChange (const QRectF &, const QRectF &) override |
void | initSizePolicy (QskSizePolicy::Policy, QskSizePolicy::Policy) |
virtual void | updateResources () |
virtual void | updateLayout () |
virtual QSizeF | contentsSizeHint (Qt::SizeHint, const QSizeF &) const |
virtual QSizeF | layoutSizeHint (Qt::SizeHint, const QSizeF &) const |
![]() | |
QskItem (QskItemPrivate &, QQuickItem *=nullptr) | |
bool | event (QEvent *) override |
virtual void | changeEvent (QEvent *) |
virtual void | geometryChangeEvent (QskGeometryChangeEvent *) |
virtual void | viewportChangeEvent (QskViewportChangeEvent *) |
virtual void | windowChangeEvent (QskWindowChangeEvent *) |
void | mouseUngrabEvent () override |
void | touchUngrabEvent () override |
void | itemChange (ItemChange, const ItemChangeData &) override |
void | geometryChange (const QRectF &, const QRectF &) override |
virtual void | aboutToShow () |
![]() | |
virtual void | updateNode (QSGNode *) |
virtual bool | isTransitionAccepted (QskAspect) const |
Additional check if an transition should be started. | |
virtual QskAspect::Subcontrol | substitutedSubcontrol (QskAspect::Subcontrol) const |
QskSkinHintTable & | hintTable () |
Accessor for local skin hint table. | |
Properties | |
qreal | extent |
bool | indeterminate |
qreal | origin |
qreal | value |
qreal | valueAsRatio |
![]() | |
qreal | minimum |
qreal | maximum |
QskIntervalF | boundaries |
![]() | |
QLocale | locale |
QskAspect::Section | section |
bool | autoLayoutChildren |
bool | visibleToLayout |
QskMargins | margins |
QskGradient | background |
QskSizePolicy | sizePolicy |
QskPlacementPolicy | placementPolicy |
QSizeF | minimumSize |
QSizeF | maximumSize |
QSizeF | preferredSize |
QSizeF | sizeConstraint |
![]() | |
QRectF | geometry |
QRectF | rect |
bool | tabFence |
bool | polishOnResize |
bool | polishOnParentResize |
bool | wheelEnabled |
bool | visibleToParent |
bool | hasChildItems |
bool | initiallyPainted |
UpdateFlags | updateFlags |
Additional Inherited Members | |
![]() | |
enum | UpdateFlag : quint16 { DeferredUpdate = 1 << 0 , DeferredPolish = 1 << 1 , DeferredLayout = 1 << 2 , CleanupOnVisibility = 1 << 3 , PreferRasterForTextures = 1 << 4 , DebugForceBackground = 1 << 7 } |
QskProgressIndicator::QskProgressIndicator | ( | QQuickItem * | parent = nullptr | ) |
Creates a new progress indicator with the given parent.
Definition at line 87 of file QskProgressIndicator.cpp.
QskProgressIndicator::QskProgressIndicator | ( | qreal | min, |
qreal | max, | ||
QQuickItem * | parent = nullptr |
||
) |
Creates a new progress indicator with the progress interval [min, max] and the given parent.
Definition at line 77 of file QskProgressIndicator.cpp.
QskProgressIndicator::QskProgressIndicator | ( | const QskIntervalF & | interval, |
QQuickItem * | parent = nullptr |
||
) |
Creates a new progress indicator with the given progress interval and the given parent.
Definition at line 92 of file QskProgressIndicator.cpp.
|
override |
Destructor.
Definition at line 97 of file QskProgressIndicator.cpp.
|
overrideprotected |
This will adjust the value appropriately when the component is complete.
Derived classes overriding this function should call it in their implementation.
Definition at line 219 of file QskProgressIndicator.cpp.
qreal QskProgressIndicator::extent | ( | ) | const |
Returns the extent, i.e. the size of the QskProgressIndicator::Groove subcontrol.
Definition at line 149 of file QskProgressIndicator.cpp.
|
signal |
Will be emitted when the extent changes.
QskGradient QskProgressIndicator::fillGradient | ( | ) | const |
Returns the fill gradient.
Definition at line 129 of file QskProgressIndicator.cpp.
bool QskProgressIndicator::hasOrigin | ( | ) | const |
Returns true if an origin has been set via setOrigin().
Definition at line 190 of file QskProgressIndicator.cpp.
|
signal |
Will be emitted when the indicator changes from indeterminate to determinate or vice versa.
bool QskProgressIndicator::isIndeterminate | ( | ) | const |
Returns whether the progress indicator is indeterminate, i.e. will loop forever.
Definition at line 102 of file QskProgressIndicator.cpp.
|
overrideprotected |
Checks whether the visibility has changed and animates the indicator in case it is indeterminate. I.e. when the indicator becomes visible it will start the animator, and when it becomes invisible it will stop it.
Derived classes overriding this function should call it in their implementation.
Definition at line 242 of file QskProgressIndicator.cpp.
qreal QskProgressIndicator::origin | ( | ) | const |
Returns the origin, i.e. the value where the progress will start. If no origin has been set via setOrigin(), the minimum value is returned.
Definition at line 180 of file QskProgressIndicator.cpp.
|
signal |
Will be emitted when the origin changes.
void QskProgressIndicator::resetExtent | ( | ) |
Resets the extent.
Definition at line 143 of file QskProgressIndicator.cpp.
void QskProgressIndicator::resetFillGradient | ( | ) |
Resets the fill gradient.
Definition at line 124 of file QskProgressIndicator.cpp.
void QskProgressIndicator::resetOrigin | ( | ) |
Resets the origin.
Definition at line 169 of file QskProgressIndicator.cpp.
void QskProgressIndicator::setExtent | ( | qreal | extent | ) |
Sets the size of the extent, i.e. the QskProgressIndicator::Groove subcontrol.
Definition at line 134 of file QskProgressIndicator.cpp.
void QskProgressIndicator::setFillGradient | ( | const QskGradient & | gradient | ) |
Sets the fill gradient by setting the gradient hint of the QskProgressIndicator::Fill subcontrol.
Definition at line 119 of file QskProgressIndicator.cpp.
void QskProgressIndicator::setIndeterminate | ( | bool | on = true | ) |
Sets whether the progress indicator is indeterminate.
Definition at line 107 of file QskProgressIndicator.cpp.
|
slot |
Sets the origin.
Definition at line 154 of file QskProgressIndicator.cpp.
|
slot |
Sets the value to value. If value is outside of the boundaries(), it will be bound to this range.
Definition at line 195 of file QskProgressIndicator.cpp.
|
slot |
Sets the value as ratio of [0.0, 1.0].
If ratio is outside of this range, it will be bound to the interval [0.0, 1.0], i.e. if it is smaller than 0, it will be set to 0, and if it is greater than 1, it will be set to 1.
Definition at line 208 of file QskProgressIndicator.cpp.
qreal QskProgressIndicator::value | ( | ) | const |
Returns the current value.
Definition at line 203 of file QskProgressIndicator.cpp.
qreal QskProgressIndicator::valueAsRatio | ( | ) | const |
Returns the current value as ratio, i.e. as percentage in the range of [0.0, 1.0].
The ratio is calculated like this: ratio = (value() - minimum()) / (maximum() - minimum()).
Definition at line 214 of file QskProgressIndicator.cpp.
qreal QskBoundedControl::valueAsRatio | ( | qreal | value | ) | const |
Definition at line 37 of file QskBoundedControl.cpp.
|
signal |
Will be emitted when the value changes.
|
static |
Showing the current value of the indicator; is drawn above the QskProgressIndicator::Groove.
Definition at line 33 of file QskProgressIndicator.h.
|
static |
Indicating the value range that the indicator can have; is drawn below the QskProgressIndicator::Fill.
Definition at line 33 of file QskProgressIndicator.h.
|
readwrite |
The extent of the indicator.
Definition at line 17 of file QskProgressIndicator.h.
|
readwrite |
Whether the indicator is indeterminate or not.
Definition at line 20 of file QskProgressIndicator.h.
|
readwrite |
The origin of the indicator.
Definition at line 23 of file QskProgressIndicator.h.
|
readwrite |
The value of the indicator.
Definition at line 26 of file QskProgressIndicator.h.
|
readwrite |
The value of the indicator as ratio.
Definition at line 27 of file QskProgressIndicator.h.