summaryrefslogtreecommitdiff
path: root/src/profilesdialog.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2022-05-17 11:47:01 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2023-07-09 17:20:40 +0200
commitd13f6bb870cdda71257f665367be8ef9fca86255 (patch)
tree52e214718478f1e52856572f5aa1a2ac58537f9f /src/profilesdialog.h
parent86bb01ba9eac879d3685c439ac9da0028bc4bc80 (diff)
Apply clang-format.
Diffstat (limited to 'src/profilesdialog.h')
-rw-r--r--src/profilesdialog.h50
1 files changed, 27 insertions, 23 deletions
diff --git a/src/profilesdialog.h b/src/profilesdialog.h
index 37fedb67..dc8329a2 100644
--- a/src/profilesdialog.h
+++ b/src/profilesdialog.h
@@ -29,10 +29,15 @@ 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
@@ -42,15 +47,15 @@ class ProfilesDialog : public MOBase::TutorableDialog
Q_OBJECT
public:
-
- /**
- * @brief constructor
- *
- * @param profileName currently enabled profile
- * @param organizer
- * @param parent parent widget
- **/
- explicit ProfilesDialog(const QString &profileName, OrganizerCore &organizer, QWidget *parent = 0);
+ /**
+ * @brief constructor
+ *
+ * @param profileName currently enabled profile
+ * @param organizer
+ * @param parent parent widget
+ **/
+ explicit ProfilesDialog(const QString& profileName, OrganizerCore& organizer,
+ QWidget* parent = 0);
~ProfilesDialog();
// also saves and restores geometry
@@ -86,17 +91,15 @@ signals:
void profileRemoved(QString const& profileName);
protected:
-
- virtual void showEvent(QShowEvent *event);
+ virtual void showEvent(QShowEvent* event);
private slots:
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:
@@ -109,7 +112,8 @@ private slots:
void on_copyProfileButton_clicked();
- void on_profilesList_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
+ void on_profilesList_currentItemChanged(QListWidgetItem* current,
+ QListWidgetItem* previous);
void on_profilesList_itemActivated(QListWidgetItem* item);
void on_removeProfileButton_clicked();
@@ -121,12 +125,12 @@ private slots:
void on_renameButton_clicked();
private:
- Ui::ProfilesDialog *ui;
- QListWidget *m_ProfilesList;
+ Ui::ProfilesDialog* ui;
+ QListWidget* m_ProfilesList;
bool m_FailState;
- MOBase::IPluginGame const *m_Game;
+ MOBase::IPluginGame const* m_Game;
QString m_ActiveProfileName;
std::optional<QString> m_Selected;
};
-#endif // PROFILESDIALOG_H
+#endif // PROFILESDIALOG_H