|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Shows active downloads with progress. More...
#include <status_indicators.h>
Public Member Functions | |
| DownloadsIndicator (SteamDownloadMonitor *downloadMonitor, QWidget *parent=nullptr, ThemeManager *themeManager=nullptr) | |
| void | onDownloadComplete (uint32_t appId) |
| void | onDownloadProgress (uint32_t appId, double progress, const QString &status) |
| void | refresh () |
| Public Member Functions inherited from StatusIndicator | |
| StatusIndicator (QWidget *parent=nullptr, ThemeManager *themeManager=nullptr) | |
| void | clicked () |
| void | setIcon (const QString &icon) |
| void | setText (const QString &text) |
| void | setTooltipText (const QString &tip) |
Additional Inherited Members | |
| Protected Member Functions inherited from StatusIndicator | |
| void | enterEvent (QEnterEvent *event) override |
| void | leaveEvent (QEvent *event) override |
| void | mousePressEvent (QMouseEvent *event) override |
| void | mouseReleaseEvent (QMouseEvent *event) override |
| void | paintEvent (QPaintEvent *event) override |
| void | updateTextColors () |
| Protected Attributes inherited from StatusIndicator | |
| bool | hovered_ = false |
| QLabel * | iconLabel_ = nullptr |
| bool | pressed_ = false |
| QLabel * | textLabel_ = nullptr |
| ThemeManager * | themeManager_ |
Shows active downloads with progress.
Definition at line 109 of file status_indicators.h.
|
explicit |
Definition at line 250 of file status_indicators.cpp.
References StatusIndicator::StatusIndicator(), StatusIndicator::clicked(), FA::Download, refresh(), StatusIndicator::setIcon(), StatusIndicator::setText(), and IconFont::text().
| void DownloadsIndicator::onDownloadComplete | ( | uint32_t | appId | ) |
Definition at line 327 of file status_indicators.cpp.
References refresh().
| void DownloadsIndicator::onDownloadProgress | ( | uint32_t | appId, |
| double | progress, | ||
| const QString & | status ) |
Definition at line 303 of file status_indicators.cpp.
References refresh().
| void DownloadsIndicator::refresh | ( | ) |
Definition at line 267 of file status_indicators.cpp.
References StatusIndicator::setText(), and StatusIndicator::setTooltipText().
Referenced by DownloadsIndicator(), onDownloadComplete(), and onDownloadProgress().