The QProgressIndicator class lets an application display a progress indicator to show that a lengthy task is under way.
More...
|
int | startAnimation (std::chrono::milliseconds timeout=std::chrono::milliseconds(0), bool processEvents=false) |
| Starts the spin animation. More...
|
|
void | stopAnimation (int indicatorId=-1) |
| Stops the spin animation. More...
|
|
void | setAnimationDelay (int delay) |
| Sets the delay between animation steps. Setting the delay to a value larger than 40 slows the animation, while setting the delay to a smaller value speeds it up. More...
|
|
void | setDisplayedWhenStopped (bool state) |
| Sets whether the component hides itself when it is not animating. More...
|
|
void | setColor (const QColor &color) |
| Sets the color of the components to the given color. More...
|
|
The QProgressIndicator class lets an application display a progress indicator to show that a lengthy task is under way.
Progress indicators are indeterminate and do nothing more than spin to show that the application is busy.
- Note
- based on https://github.com/mojocorp/QProgressIndicator under MIT license
Definition at line 30 of file loadindicator.h.
◆ color()
const QColor& swift::gui::CLoadIndicator::color |
( |
| ) |
const |
|
inline |
◆ getAnimationDelayTimeMs()
int swift::gui::CLoadIndicator::getAnimationDelayTimeMs |
( |
| ) |
const |
|
inline |
Returns the delay between animation steps.
- Returns
- The number of milliseconds between animation steps. By default, the animation delay is set to 40 milliseconds.
- See also
- setAnimationDelay
Definition at line 41 of file loadindicator.h.
◆ heightForWidth()
int swift::gui::CLoadIndicator::heightForWidth |
( |
int |
w | ) |
const |
|
virtual |
◆ isAnimated()
bool swift::gui::CLoadIndicator::isAnimated |
( |
| ) |
const |
◆ isDisplayedWhenStopped()
bool swift::gui::CLoadIndicator::isDisplayedWhenStopped |
( |
| ) |
const |
Returns a Boolean value indicating whether the receiver shows itself even when it is not animating.
- Returns
- Return true if the progress indicator shows itself even when it is not animating. By default, it returns false.
- See also
- setDisplayedWhenStopped
Definition at line 40 of file loadindicator.cpp.
◆ paintEvent()
void swift::gui::CLoadIndicator::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
protectedvirtual |
◆ setAnimationDelay
void swift::gui::CLoadIndicator::setAnimationDelay |
( |
int |
delay | ) |
|
|
slot |
Sets the delay between animation steps. Setting the delay to a value larger than 40 slows the animation, while setting the delay to a smaller value speeds it up.
- Parameters
-
delay | The delay, in milliseconds. |
- See also
- animationDelay
Definition at line 95 of file loadindicator.cpp.
◆ setColor
void swift::gui::CLoadIndicator::setColor |
( |
const QColor & |
color | ) |
|
|
slot |
◆ setDisplayedWhenStopped
void swift::gui::CLoadIndicator::setDisplayedWhenStopped |
( |
bool |
state | ) |
|
|
slot |
Sets whether the component hides itself when it is not animating.
- Parameters
-
state | The animation state. Set false to hide the progress indicator when it is not animating; otherwise true. |
- See also
- isDisplayedWhenStopped
Definition at line 34 of file loadindicator.cpp.
◆ sizeHint()
QSize swift::gui::CLoadIndicator::sizeHint |
( |
| ) |
const |
|
virtual |
◆ startAnimation
int swift::gui::CLoadIndicator::startAnimation |
( |
std::chrono::milliseconds |
timeout = std::chrono::milliseconds(0) , |
|
|
bool |
processEvents = false |
|
) |
| |
|
slot |
◆ stopAnimation
void swift::gui::CLoadIndicator::stopAnimation |
( |
int |
indicatorId = -1 | ) |
|
|
slot |
◆ timerEvent()
void swift::gui::CLoadIndicator::timerEvent |
( |
QTimerEvent * |
event | ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following files: