diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-12-29 07:29:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-29 07:29:53 -0500 |
| commit | 1b101bda36ed66d08fa597a8956369c9e0af8519 (patch) | |
| tree | f8a62cc4ac8fb318ef4e86053e389a3187968940 /src/profilesdialog.h | |
| parent | 4b059fa71f0d5043bfac8e48757c69b11a6168c6 (diff) | |
| parent | 33a177f1eda90b4d1fff92976635beaa59f85172 (diff) | |
Merge pull request #1333 from isanae/more-stuff-2
More stuff 2
Diffstat (limited to 'src/profilesdialog.h')
| -rw-r--r-- | src/profilesdialog.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/profilesdialog.h b/src/profilesdialog.h index 08298d0e..005bc33e 100644 --- a/src/profilesdialog.h +++ b/src/profilesdialog.h @@ -63,6 +63,11 @@ public: **/
bool failed() const { return m_FailState; }
+ // if the dialog was closed with the 'select' button, returns the name of the
+ // selected profile; if the dialog was closed with 'cancel', returns empty
+ //
+ std::optional<QString> selectedProfile() const;
+
signals:
/**
@@ -95,7 +100,8 @@ private: private slots:
- void on_closeButton_clicked();
+ void on_close_clicked();
+ void on_select_clicked();
void on_addProfileButton_clicked();
@@ -104,6 +110,7 @@ private slots: void on_copyProfileButton_clicked();
void on_profilesList_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
+ void on_profilesList_itemActivated(QListWidgetItem* item);
void on_removeProfileButton_clicked();
@@ -119,6 +126,7 @@ private: bool m_FailState;
MOBase::IPluginGame const *m_Game;
QString m_ActiveProfileName;
+ std::optional<QString> m_Selected;
};
#endif // PROFILESDIALOG_H
|
