game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
PulsingDot Class Reference

A small pulsing dot for subtle loading indication. More...

#include <loading_widgets.h>

Inheritance diagram for PulsingDot:
Collaboration diagram for PulsingDot:

Public Member Functions

 PulsingDot (int size=8, QWidget *parent=nullptr, ThemeManager *themeManager=nullptr)
 ~PulsingDot () override=default
qreal opacity () const
void setColor (const QColor &color)
void setOpacity (qreal opacity)
void startAnimation ()
void stopAnimation ()

Protected Member Functions

void hideEvent (QHideEvent *event) override
void paintEvent (QPaintEvent *event) override
void showEvent (QShowEvent *event) override

Detailed Description

A small pulsing dot for subtle loading indication.

Definition at line 249 of file loading_widgets.h.

Constructor & Destructor Documentation

◆ PulsingDot()

PulsingDot::PulsingDot ( int size = 8,
QWidget * parent = nullptr,
ThemeManager * themeManager = nullptr )
explicit

Definition at line 505 of file loading_widgets.cpp.

◆ ~PulsingDot()

PulsingDot::~PulsingDot ( )
overridedefault

Member Function Documentation

◆ hideEvent()

void PulsingDot::hideEvent ( QHideEvent * event)
overrideprotected

Definition at line 552 of file loading_widgets.cpp.

References stopAnimation().

◆ opacity()

qreal PulsingDot::opacity ( ) const
inline

Definition at line 265 of file loading_widgets.h.

Referenced by setOpacity().

◆ paintEvent()

void PulsingDot::paintEvent ( QPaintEvent * event)
overrideprotected

Definition at line 558 of file loading_widgets.cpp.

◆ setColor()

void PulsingDot::setColor ( const QColor & color)
inline

Definition at line 259 of file loading_widgets.h.

◆ setOpacity()

void PulsingDot::setOpacity ( qreal opacity)
inline

Definition at line 269 of file loading_widgets.h.

References opacity().

◆ showEvent()

void PulsingDot::showEvent ( QShowEvent * event)
overrideprotected

Definition at line 546 of file loading_widgets.cpp.

References startAnimation().

◆ startAnimation()

void PulsingDot::startAnimation ( )

Definition at line 533 of file loading_widgets.cpp.

Referenced by showEvent().

◆ stopAnimation()

void PulsingDot::stopAnimation ( )

Definition at line 541 of file loading_widgets.cpp.

Referenced by hideEvent().


The documentation for this class was generated from the following files: