QtPass 1.4.0
Multi-platform GUI for pass, the standard unix password manager.
|
The QProgressIndicator class lets an application display a progress indicator to show that a lengthy task is under way. 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=0) | |
QProgressIndicator::QProgressIndicator constructor. | |
int | animationDelay () const |
Returns the delay between animation steps. | |
bool | isAnimated () const |
Returns a Boolean value indicating whether the component is currently animated. | |
bool | isDisplayedWhenStopped () const |
Returns a Boolean value indicating whether the receiver shows itself even when it is not animating. | |
const QColor & | color () const |
Returns the color of the component. | |
virtual QSize | sizeHint () const |
QProgressIndicator::sizeHint default minimum size. | |
int | heightForWidth (int w) const |
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. | |
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.
Definition at line 43 of file qprogressindicator.h.
|
explicit |
QProgressIndicator::QProgressIndicator constructor.
parent | widget the indicator is placed in. |
Definition at line 34 of file qprogressindicator.cpp.
|
inline |
Returns the delay between animation steps.
Definition at line 53 of file qprogressindicator.h.
|
inline |
Returns the color of the component.
Definition at line 73 of file qprogressindicator.h.
int QProgressIndicator::heightForWidth | ( | int | w | ) | const |
QProgressIndicator::heightForWidth square ratio.
w | requested width |
Definition at line 96 of file qprogressindicator.cpp.
bool QProgressIndicator::isAnimated | ( | ) | const |
Returns a Boolean value indicating whether the component is currently animated.
Definition at line 41 of file qprogressindicator.cpp.
bool QProgressIndicator::isDisplayedWhenStopped | ( | ) | const |
Returns a Boolean value indicating whether the receiver shows itself even when it is not animating.
Definition at line 49 of file qprogressindicator.cpp.
|
protectedvirtual |
QProgressIndicator::paintEvent draw the spinner.
Definition at line 110 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 69 of file qprogressindicator.cpp.
|
slot |
Sets the color of the components to the given color.
Definition at line 79 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 43 of file qprogressindicator.cpp.
|
virtual |
QProgressIndicator::sizeHint default minimum size.
Definition at line 89 of file qprogressindicator.cpp.
|
slot |
Starts the spin animation.
Definition at line 53 of file qprogressindicator.cpp.
|
slot |
Stops the spin animation.
Definition at line 60 of file qprogressindicator.cpp.
|
protectedvirtual |
QProgressIndicator::timerEvent do the actual animation.
Definition at line 101 of file qprogressindicator.cpp.