RibbonProgressBar Class

RibbonProgressBar implements progress bar control with ability to change the current value from any thread. Can be used together with RibbonProgressOperation object. More...

Header: #include <RibbonProgressBar>
Inherits: QProgressBar

Public Functions

RibbonProgressBar(QWidget *parent = Q_NULL)
virtual ~RibbonProgressBar()

Reimplemented Public Functions

virtual QSize minimumSizeHint() const override
virtual QSize sizeHint() const override

Public Slots

void setValueSafe(int value)

Reimplemented Protected Functions

virtual void paintEvent(QPaintEvent *event) override

Detailed Description

Member Function Documentation

[explicit] RibbonProgressBar::RibbonProgressBar(QWidget *parent = Q_NULL)

Constructs RibbonProgressBar object with the given parent.

[virtual noexcept] RibbonProgressBar::~RibbonProgressBar()

[override virtual] QSize RibbonProgressBar::minimumSizeHint() const

Reimplements: QProgressBar::minimumSizeHint() const.

[override virtual protected] void RibbonProgressBar::paintEvent(QPaintEvent *event)

Reimplements: QProgressBar::paintEvent(QPaintEvent *).

[slot] void RibbonProgressBar::setValueSafe(int value)

Sets the current value for the progress. Thread-safe method, can be used from any thread.

[override virtual] QSize RibbonProgressBar::sizeHint() const

Reimplements: QProgressBar::sizeHint() const.