|
| | QCustomProgressBar (QWidget *parent=nullptr) |
| | Constructs a progress bar widget.
|
| void | addProgressColor (fltp08 percent, RGBColor color) |
| | Adds a color stop at a given percent to form a gradient.
|
|
void | clearProgressColors () |
| | Removes all custom progress colors, reverting to the default appearance.
|
| bool | isIndeterminateState () const |
| | Checks whether the progress bar is in an indeterminate (spinning) state.
|
| fltp08 | percent () const |
| | Returns the current progress percent.
|
| void | setDrawBackground (bool draw_background) |
| | Sets whether to draw the background behind the progress bar.
|
| void | setFormat (const StringView &format) |
| | Sets the raw format string displayed inside the progress bar when progress is indeterminate.
|
| virtual void | setIndeterminateAnimationTimespan (const TimeSpan &span) |
| | Sets the time span for one full cycle of the indeterminate animation.
|
| virtual void | setMessage (const TranslatedString &message) |
| | Sets the translated message text displayed inside the progress bar when progress is indeterminate.
|
| virtual void | setPercent (fltp08 percent) |
| | Sets the progress bar to a specific percent complete.
|
| void | setProgressColor (RGBColor color) |
| | Sets a single solid color for the progress bar fill.
|
| void | setProgressColors (const Buffer< RGBColor > &colors) |
| | Sets multiple progress colors that will be evenly spaced across the progress range.
|
| virtual void | setToIndeterminateState (bool is_indeterminate) |
| | Toggles the indeterminate state, which shows an animation to indicate activity without a known completion percent.
|
|
| QString | customText (fltp04 percent) const |
| | Returns the formatted display text for a given percent value.
|
| fltp08 | indeterminatePercent () const |
| | Returns the current indeterminate animation percent for rendering.
|
| QSize | minimumSizeHint () const override |
| | Returns the minimum recommended size for the progress bar.
|
| void | paintEvent (QPaintEvent *event) override |
| | Custom paint event handler that draws the progress bar with gradient and indeterminate animation support.
|
| QSize | sizeHint () const override |
| | Returns the recommended size for the progress bar.
|
|
void | updateFromTimer () |
| | Slot called by the timer to update the indeterminate animation.
|
|
void | updateProgressColor () |
| | Recalculates the current progress color based on the gradient stops and percent.
|
|
|
bool | m_draw_background |
| | Whether to draw the background behind the progress bar.
|
|
TimeSpan | m_indeterminate_period = TimeSpan(1.0) |
| | Duration for one full indeterminate animation cycle.
|
|
String | m_last_format = String("0%") |
| | The last format string used for display text.
|
|
QString | m_last_text |
| | The last rendered display text.
|
|
Buffer< std::pair< fltp08, RGBColor > > | m_progress_colors |
| | Gradient color stops as percent-color pairs.
|
|
QTimer * | m_update_timer |
| | Timer driving the indeterminate animation updates.
|
Allows for showing of progress bar in horizontal format.
Defaults to look and feel of system progress bar.
A progress bar is used to give the user an indication of the progress of an operation and to reassure them that the application is still running.
The progress bar uses the concept of percent from 0.0 to 1.0. It will display the percentage specified or can be set to an indeterminate or "spinning" state to indicate progress is occuring, but at an unknown rate.
Definition at line 56 of file QCustomProgressbar.h.