From ea6292168a6acd4c263913f0ccd7dd64daf4f5cf Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Fri, 23 Feb 2018 01:45:58 +0100 Subject: Revert "Applied clang-format on source" This reverts commit 5e5c9c07291f6b09623d31c92b1fb61c4ede576e. --- src/profilesdialog.h | 81 ++++++++++++++++++++++++++-------------------------- 1 file changed, 41 insertions(+), 40 deletions(-) (limited to 'src/profilesdialog.h') diff --git a/src/profilesdialog.h b/src/profilesdialog.h index ac8e2b76..cab25f6a 100644 --- a/src/profilesdialog.h +++ b/src/profilesdialog.h @@ -28,72 +28,73 @@ class QListWidgetItem; #include class QString; -namespace Ui { -class ProfilesDialog; -} +namespace Ui { class ProfilesDialog; } + +namespace MOBase { class IPluginGame; } -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(); - - /** - * @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; } + + /** + * @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; } 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 -- cgit v1.3.1