30#ifndef SRC_QPROGRESSINDICATOR_H_
31#define SRC_QPROGRESSINDICATOR_H_
75 [[nodiscard]] auto
color() const -> const QColor & {
return m_color; }
77 [[nodiscard]]
virtual auto sizeHint() const -> QSize;
119 bool m_displayedWhenStopped;
The QProgressIndicator class lets an application display a progress indicator to show that a lengthy ...
auto animationDelay() const -> int
Returns the delay between animation steps.
virtual void timerEvent(QTimerEvent *event)
QProgressIndicator::timerEvent do the actual animation.
auto heightForWidth(int w) const -> int
QProgressIndicator::heightForWidth square ratio.
void stopAnimation()
Stops the spin animation.
virtual void paintEvent(QPaintEvent *event)
QProgressIndicator::paintEvent draw the spinner.
auto isAnimated() const -> bool
Returns a Boolean value indicating whether the component is currently animated.
void startAnimation()
Starts the spin animation.
auto isDisplayedWhenStopped() const -> bool
Returns a Boolean value indicating whether the receiver shows itself even when it is not animating.
void setColor(const QColor &color)
Sets the color of the components to the given color.
void setDisplayedWhenStopped(bool state)
Sets whether the component hides itself when it is not animating.
virtual auto sizeHint() const -> QSize
QProgressIndicator::sizeHint default minimum size.
void setAnimationDelay(int delay)
Sets the delay between animation steps.
auto color() const -> const QColor &
Returns the color of the component.