diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-04-01 09:49:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-01 09:49:22 -0400 |
| commit | 1ab052952dcc3c612837262474c91ed8780961c3 (patch) | |
| tree | 2ef9339cd92fd2271ee1b42a8ec19bf79c4954a8 /src/yuzu/applets/qt_profile_select.h | |
| parent | b2772bcb0d994a9646282e98aca5d97b70f843f4 (diff) | |
| parent | 668eb5b8dad656c281c218ea8b4c34965b163b93 (diff) | |
Merge pull request #10006 from german77/profile_select
service: am: Improve profile select applet
Diffstat (limited to 'src/yuzu/applets/qt_profile_select.h')
| -rw-r--r-- | src/yuzu/applets/qt_profile_select.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/yuzu/applets/qt_profile_select.h b/src/yuzu/applets/qt_profile_select.h index 9f214d071..99056e274 100644 --- a/src/yuzu/applets/qt_profile_select.h +++ b/src/yuzu/applets/qt_profile_select.h @@ -28,7 +28,8 @@ class QtProfileSelectionDialog final : public QDialog { Q_OBJECT public: - explicit QtProfileSelectionDialog(Core::HID::HIDCore& hid_core, QWidget* parent); + explicit QtProfileSelectionDialog(Core::HID::HIDCore& hid_core, QWidget* parent, + const Core::Frontend::ProfileSelectParameters& parameters); ~QtProfileSelectionDialog() override; int exec() override; @@ -40,6 +41,9 @@ public: private: void SelectUser(const QModelIndex& index); + void SetWindowTitle(const Core::Frontend::ProfileSelectParameters& parameters); + void SetDialogPurpose(const Core::Frontend::ProfileSelectParameters& parameters); + int user_index = 0; QVBoxLayout* layout; @@ -66,10 +70,11 @@ public: ~QtProfileSelector() override; void Close() const override; - void SelectProfile(SelectProfileCallback callback_) const override; + void SelectProfile(SelectProfileCallback callback_, + const Core::Frontend::ProfileSelectParameters& parameters) const override; signals: - void MainWindowSelectProfile() const; + void MainWindowSelectProfile(const Core::Frontend::ProfileSelectParameters& parameters) const; void MainWindowRequestExit() const; private: |
