|
QtPass 1.6.0
Multi-platform GUI for pass, the standard unix password manager.
|
QProgressIndicator provides a simple indeterminate progress indicator widget that spins to show the application is busy. More...
#include <qprogressindicator.h>
Public Slots | |
| void | startAnimation () |
| Starts the spin animation. | |
| void | stopAnimation () |
| Stops the spin animation. | |
| void | setAnimationDelay (int delay) |
| Sets the delay between animation steps. | |
| void | setDisplayedWhenStopped (bool state) |
| Sets whether the component hides itself when it is not animating. | |
| void | setColor (const QColor &color) |
| Sets the color of the components to the given color. | |
Public Member Functions | |
| QProgressIndicator (QWidget *parent=nullptr) | |
| QProgressIndicator::QProgressIndicator constructor. | |
| auto | animationDelay () const -> int |
| Returns the delay between animation steps. | |
| auto | isAnimated () const -> bool |
| Returns a Boolean value indicating whether the component is currently animated. | |
| auto | isDisplayedWhenStopped () const -> bool |
| Returns a Boolean value indicating whether the receiver shows itself even when it is not animating. | |
| auto | color () const -> const QColor & |
| Returns the color of the component. | |
| virtual auto | sizeHint () const -> QSize |
| QProgressIndicator::sizeHint default minimum size. | |
| auto | heightForWidth (int w) const -> int |
| QProgressIndicator::heightForWidth square ratio. | |
Protected Member Functions | |
| virtual void | timerEvent (QTimerEvent *event) |
| QProgressIndicator::timerEvent do the actual animation. | |
| virtual void | paintEvent (QPaintEvent *event) |
| QProgressIndicator::paintEvent draw the spinner. | |
QProgressIndicator provides a simple indeterminate progress indicator widget that spins to show the application is busy.
Returns the delay between animation steps.
Indicates whether the indicator is currently animating.
Indicates whether the indicator remains visible when not animating.
Returns the current drawing color used by the indicator.
Starts the spin animation.
Stops the spin animation.
Sets the delay between animation steps.
| delay | Delay in milliseconds. Values larger than 40 slow the animation; values smaller than 40 speed it up. |
Sets whether the indicator remains visible when not animating.
| state | Set to true to keep the indicator visible when stopped; set to false to hide it when stopped. |
Sets the drawing color for the indicator.
| color | The new color to use for rendering the indicator. |
Definition at line 107 of file qprogressindicator.h.
|
explicit |
QProgressIndicator::QProgressIndicator constructor.
| parent | widget the indicator is placed in. |
Definition at line 36 of file qprogressindicator.cpp.
|
inlinenodiscard |
Returns the delay between animation steps.
Definition at line 118 of file qprogressindicator.h.
|
inlinenodiscard |
Returns the color of the component.
Definition at line 138 of file qprogressindicator.h.
|
nodiscard |
QProgressIndicator::heightForWidth square ratio.
| w | requested width |
Definition at line 102 of file qprogressindicator.cpp.
|
nodiscard |
Returns a Boolean value indicating whether the component is currently animated.
Definition at line 43 of file qprogressindicator.cpp.
|
nodiscard |
Returns a Boolean value indicating whether the receiver shows itself even when it is not animating.
Definition at line 51 of file qprogressindicator.cpp.
|
protectedvirtual |
QProgressIndicator::paintEvent draw the spinner.
Definition at line 116 of file qprogressindicator.cpp.
|
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.
| delay | The delay, in milliseconds. |
Definition at line 73 of file qprogressindicator.cpp.
|
slot |
Sets the color of the components to the given color.
Definition at line 85 of file qprogressindicator.cpp.
|
slot |
Sets whether the component hides itself when it is not animating.
| state | The animation state. Set false to hide the progress indicator when it is not animating; otherwise true. |
Definition at line 45 of file qprogressindicator.cpp.
|
nodiscardvirtual |
QProgressIndicator::sizeHint default minimum size.
Definition at line 95 of file qprogressindicator.cpp.
|
slot |
Starts the spin animation.
Definition at line 55 of file qprogressindicator.cpp.
|
slot |
Stops the spin animation.
Definition at line 63 of file qprogressindicator.cpp.
|
protectedvirtual |
QProgressIndicator::timerEvent do the actual animation.
Definition at line 107 of file qprogressindicator.cpp.