summaryrefslogtreecommitdiff
path: root/src/yuzu/applets/qt_profile_select.h
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-03-28 20:55:06 -0600
committergerman77 <juangerman-13@hotmail.com>2023-03-29 08:53:19 -0600
commit668eb5b8dad656c281c218ea8b4c34965b163b93 (patch)
tree5bbe7344abb001909ee32e7dd9422b1a91c72f9d /src/yuzu/applets/qt_profile_select.h
parent8bdc51b620f0778f53d76ad9368da97a9213d631 (diff)
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.h11
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: