|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Dialog for managing performance profiles for a game. More...
#include <performance_profile_dialog.h>
Public Member Functions | |
| PerformanceProfileDialog (const Game *game, PerformanceProfileService *profileService, QWidget *parent=nullptr, ThemeManager *themeManager=nullptr) | |
| Construct a profile dialog for a specific game. | |
| PerformanceProfileDialog (PerformanceProfileService *profileService, core::GameLibraryController *libraryController, QWidget *parent=nullptr, ThemeManager *themeManager=nullptr) | |
| Construct a global profile manager dialog. | |
| ~PerformanceProfileDialog () override | |
| std::string | getSelectedProfileId () const |
| Get the currently selected profile ID. | |
| void | profileApplied (const std::string &gameId, const std::string &profileId) |
| Emitted when a profile is applied to a game. | |
Dialog for managing performance profiles for a game.
Features:
Definition at line 54 of file performance_profile_dialog.h.
|
explicit |
Construct a profile dialog for a specific game.
| game | Game to manage profiles for |
| profileService | Service for profile management |
| parent | Parent widget |
| themeManager | Theme provider; pass nullptr to use ThemeManager::instance() |
Definition at line 28 of file performance_profile_dialog.cpp.
References Game::name, and ThemeManager::themeChanged().
|
explicit |
Construct a global profile manager dialog.
| profileService | Service for profile management |
| libraryController | Library controller for game list |
| parent | Parent widget |
| themeManager | Theme provider; pass nullptr to use ThemeManager::instance() |
Definition at line 49 of file performance_profile_dialog.cpp.
References ThemeManager::themeChanged().
|
overridedefault |
| std::string PerformanceProfileDialog::getSelectedProfileId | ( | ) | const |
Get the currently selected profile ID.
Definition at line 775 of file performance_profile_dialog.cpp.
| void PerformanceProfileDialog::profileApplied | ( | const std::string & | gameId, |
| const std::string & | profileId ) |
Emitted when a profile is applied to a game.
| gameId | Game ID |
| profileId | Profile ID that was applied |