diff options
| author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-22 16:54:34 +0100 |
|---|---|---|
| committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-22 16:54:34 +0100 |
| commit | 5e5c9c07291f6b09623d31c92b1fb61c4ede576e (patch) | |
| tree | 0684c123db375336e0e03f0240155a12e744db16 /src/profilesdialog.h | |
| parent | 5ad912e1934061b38825801a27f7c12933878005 (diff) | |
Applied clang-format on source
Diffstat (limited to 'src/profilesdialog.h')
| -rw-r--r-- | src/profilesdialog.h | 79 |
1 files changed, 39 insertions, 40 deletions
diff --git a/src/profilesdialog.h b/src/profilesdialog.h index cab25f6a..ac8e2b76 100644 --- a/src/profilesdialog.h +++ b/src/profilesdialog.h @@ -28,73 +28,72 @@ class QListWidgetItem; #include <QObject>
class QString;
-namespace Ui { class ProfilesDialog; }
-
-namespace MOBase { class IPluginGame; }
+namespace Ui {
+class ProfilesDialog;
+}
+namespace MOBase {
+class IPluginGame;
+}
/**
* @brief Dialog that can be used to create/delete/modify profiles
**/
-class ProfilesDialog : public MOBase::TutorableDialog
-{
- Q_OBJECT
+class ProfilesDialog : public MOBase::TutorableDialog {
+ Q_OBJECT
public:
+ /**
+ * @brief constructor
+ *
+ * @param profileName currently enabled profile
+ * @param parent parent widget
+ **/
+ explicit ProfilesDialog(const QString& profileName, MOBase::IPluginGame const* game, QWidget* parent = 0);
+ ~ProfilesDialog();
- /**
- * @brief constructor
- *
- * @param profileName currently enabled profile
- * @param parent parent widget
- **/
- explicit ProfilesDialog(const QString &profileName, MOBase::IPluginGame const *game, QWidget *parent = 0);
- ~ProfilesDialog();
-
- /**
- * @return true if creation of a new profile failed
- * @todo the notion of a fail state makes little sense in the current dialog
- **/
- bool failed() const { return m_FailState; }
+ /**
+ * @return true if creation of a new profile failed
+ * @todo the notion of a fail state makes little sense in the current dialog
+ **/
+ bool failed() const { return m_FailState; }
protected:
-
- virtual void showEvent(QShowEvent *event);
+ virtual void showEvent(QShowEvent* event);
private slots:
- void on_localIniFilesBox_stateChanged(int state);
+ void on_localIniFilesBox_stateChanged(int state);
private:
-
- QListWidgetItem *addItem(const QString &name);
- void createProfile(const QString &name, bool useDefaultSettings);
- void createProfile(const QString &name, const Profile &reference);
+ QListWidgetItem* addItem(const QString& name);
+ void createProfile(const QString& name, bool useDefaultSettings);
+ void createProfile(const QString& name, const Profile& reference);
private slots:
- void on_closeButton_clicked();
+ void on_closeButton_clicked();
- void on_addProfileButton_clicked();
+ void on_addProfileButton_clicked();
- void on_invalidationBox_stateChanged(int arg1);
+ void on_invalidationBox_stateChanged(int arg1);
- void on_copyProfileButton_clicked();
+ void on_copyProfileButton_clicked();
- void on_profilesList_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
+ void on_profilesList_currentItemChanged(QListWidgetItem* current, QListWidgetItem* previous);
- void on_removeProfileButton_clicked();
+ void on_removeProfileButton_clicked();
- void on_localSavesBox_stateChanged(int arg1);
+ void on_localSavesBox_stateChanged(int arg1);
- void on_transferButton_clicked();
+ void on_transferButton_clicked();
- void on_renameButton_clicked();
+ void on_renameButton_clicked();
private:
- Ui::ProfilesDialog *ui;
- QListWidget *m_ProfilesList;
- bool m_FailState;
- MOBase::IPluginGame const *m_Game;
+ Ui::ProfilesDialog* ui;
+ QListWidget* m_ProfilesList;
+ bool m_FailState;
+ MOBase::IPluginGame const* m_Game;
};
#endif // PROFILESDIALOG_H
|
