|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
A loading overlay that covers its parent widget. More...
#include <loading_widgets.h>
Public Member Functions | |
| LoadingOverlay (QWidget *parent=nullptr, ThemeManager *themeManager=nullptr) | |
| ~LoadingOverlay () override=default | |
| void | cancelled () |
| void | clearProgress () |
| void | setCancellable (bool cancellable) |
| void | setMessage (const QString &message) |
| void | setProgress (int current, int total) |
| void | setSpinnerAngle (int angle) |
| int | spinnerAngle () const |
Protected Member Functions | |
| void | hideEvent (QHideEvent *event) override |
| void | paintEvent (QPaintEvent *event) override |
| void | resizeEvent (QResizeEvent *event) override |
| void | showEvent (QShowEvent *event) override |
A loading overlay that covers its parent widget.
Shows a spinning indicator and optional message. Can be cancelled if cancel callback is provided.
Usage: auto* overlay = new LoadingOverlay(this); overlay->setMessage("Loading games..."); overlay->show(); // When done: overlay->hide();
Definition at line 148 of file loading_widgets.h.
|
explicit |
Definition at line 201 of file loading_widgets.cpp.
References cancelled().
|
overridedefault |
| void LoadingOverlay::cancelled | ( | ) |
Referenced by LoadingOverlay().
| void LoadingOverlay::clearProgress | ( | ) |
Definition at line 259 of file loading_widgets.cpp.
|
overrideprotected |
Definition at line 304 of file loading_widgets.cpp.
|
overrideprotected |
Definition at line 316 of file loading_widgets.cpp.
|
overrideprotected |
Definition at line 310 of file loading_widgets.cpp.
| void LoadingOverlay::setCancellable | ( | bool | cancellable | ) |
Definition at line 245 of file loading_widgets.cpp.
| void LoadingOverlay::setMessage | ( | const QString & | message | ) |
Definition at line 239 of file loading_widgets.cpp.
| void LoadingOverlay::setProgress | ( | int | current, |
| int | total ) |
Definition at line 252 of file loading_widgets.cpp.
|
inline |
Definition at line 166 of file loading_widgets.h.
|
overrideprotected |
Definition at line 295 of file loading_widgets.cpp.
|
inline |
Definition at line 162 of file loading_widgets.h.