|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Unified widget for displaying game compatibility and recommendations. More...
#include <recommendations_widget.h>
Public Member Functions | |
| RecommendationsWidget (QWidget *parent=nullptr, ThemeManager *themeManager=nullptr) | |
| ~RecommendationsWidget () override | |
| void | applyRequested (const GameSuggestions &suggestions) |
| Emitted when user clicks "Apply Recommendations". | |
| void | clear () |
| Clear all displayed data. | |
| const GameSuggestions & | getCurrentSuggestions () const |
| Get the current recommendations (for applying). | |
| bool | hasRecommendations () const |
| Check if recommendations are available. | |
| void | loadingComplete (bool success) |
| Emitted when loading completes (async). | |
| void | loadRecommendations (int steamAppId, const QString &gameName) |
| Load recommendations for a game by Steam App ID. | |
| void | setRecommendations (const GameSuggestions &suggestions) |
| Set recommendations directly (for when already fetched). | |
Unified widget for displaying game compatibility and recommendations.
Combines data from multiple sources:
Displays a confidence score and provides a single "Apply" button.
Definition at line 37 of file recommendations_widget.h.
|
explicit |
Definition at line 23 of file recommendations_widget.cpp.
References ThemeManager::themeChanged().
|
override |
Definition at line 36 of file recommendations_widget.cpp.
| void RecommendationsWidget::applyRequested | ( | const GameSuggestions & | suggestions | ) |
Emitted when user clicks "Apply Recommendations".
| void RecommendationsWidget::clear | ( | ) |
Clear all displayed data.
Definition at line 109 of file recommendations_widget.cpp.
References ThemeColors::inputBackground, and ThemeColors::textMuted.
|
inline |
Get the current recommendations (for applying).
Definition at line 55 of file recommendations_widget.h.
|
inline |
Check if recommendations are available.
Definition at line 61 of file recommendations_widget.h.
| void RecommendationsWidget::loadingComplete | ( | bool | success | ) |
Emitted when loading completes (async).
Referenced by loadRecommendations().
| void RecommendationsWidget::loadRecommendations | ( | int | steamAppId, |
| const QString & | gameName ) |
Load recommendations for a game by Steam App ID.
Definition at line 50 of file recommendations_widget.cpp.
References GameSuggestionService::getSuggestions(), GameSuggestions::hasRecommendations(), ThemeColors::inputBackground, loadingComplete(), setRecommendations(), and ThemeColors::textMuted.
| void RecommendationsWidget::setRecommendations | ( | const GameSuggestions & | suggestions | ) |
Set recommendations directly (for when already fetched).
Definition at line 103 of file recommendations_widget.cpp.
Referenced by loadRecommendations().