|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
#include <game_list_delegate.h>
Public Member Functions | |
| GameListDelegate (QObject *parent=nullptr) | |
| const ThemeColors & | colors () const |
| bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override |
| void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
| void | setViewMode (ViewMode mode) |
| void | setZoomLevel (int level) |
| QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
| void | updateCachedColors () |
| void | updateCachedFonts () |
| ViewMode | viewMode () const |
| double | zoomFactor () const |
| int | zoomLevel () const |
Static Public Member Functions | |
| static QColor | getProtonDBTierColor (const QString &tier) |
Definition at line 52 of file game_list_delegate.h.
|
explicit |
Definition at line 28 of file game_list_delegate.cpp.
References updateCachedColors(), and updateCachedFonts().
|
inline |
Definition at line 77 of file game_list_delegate.h.
Referenced by paint().
|
override |
Definition at line 820 of file game_list_delegate.cpp.
References Grid.
|
static |
Definition at line 857 of file game_list_delegate.cpp.
|
override |
Definition at line 94 of file game_list_delegate.cpp.
References ThemeColors::accent, colors(), Compact, GameCloudSaveEnabledRole, GameDownloadProgressRole, GameInstallSizeRole, GameIsDownloadingRole, GameIsFavoriteRole, GameIsInstalledRole, GameIsRunningRole, GameIsSteamRole, GameLastPlayedRole, GameLaunchCountRole, GameNeedsUpdateRole, GamePlayTimeRole, GameProtonDBTierRole, GameRunnerRole, GameSourceRole, Grid, ThemeColors::hoverBackground, and List.
|
inline |
Definition at line 57 of file game_list_delegate.h.
| void GameListDelegate::setZoomLevel | ( | int | level | ) |
Definition at line 35 of file game_list_delegate.cpp.
References updateCachedFonts().
|
override |
Definition at line 64 of file game_list_delegate.cpp.
References Compact, Grid, List, and zoomFactor().
|
inline |
Definition at line 73 of file game_list_delegate.h.
References ThemeManager::colors(), and ThemeManager::instance().
Referenced by GameListDelegate().
| void GameListDelegate::updateCachedFonts | ( | ) |
Definition at line 44 of file game_list_delegate.cpp.
References zoomFactor().
Referenced by GameListDelegate(), and setZoomLevel().
|
inline |
Definition at line 61 of file game_list_delegate.h.
|
inline |
Definition at line 83 of file game_list_delegate.h.
Referenced by sizeHint(), and updateCachedFonts().
|
inline |
Definition at line 67 of file game_list_delegate.h.