|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Shows library statistics (game count, playtime). More...
#include <status_indicators.h>
Public Member Functions | |
| LibraryStatsIndicator (core::GameLibraryController *libraryController, QWidget *parent=nullptr, ThemeManager *themeManager=nullptr) | |
| 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 library statistics (game count, playtime).
Definition at line 179 of file status_indicators.h.
|
explicit |
Definition at line 479 of file status_indicators.cpp.
References StatusIndicator::StatusIndicator(), StatusIndicator::clicked(), FA::Gamepad, refresh(), StatusIndicator::setIcon(), StatusIndicator::setText(), and IconFont::text().
| void LibraryStatsIndicator::refresh | ( | ) |
Definition at line 491 of file status_indicators.cpp.
References StatusIndicator::setText(), and StatusIndicator::setTooltipText().
Referenced by LibraryStatsIndicator().