diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2022-05-17 11:47:01 +0200 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2023-07-09 17:20:40 +0200 |
| commit | d13f6bb870cdda71257f665367be8ef9fca86255 (patch) | |
| tree | 52e214718478f1e52856572f5aa1a2ac58537f9f /src/modinfodialogtab.h | |
| parent | 86bb01ba9eac879d3685c439ac9da0028bc4bc80 (diff) | |
Apply clang-format.
Diffstat (limited to 'src/modinfodialogtab.h')
| -rw-r--r-- | src/modinfodialogtab.h | 46 |
1 files changed, 19 insertions, 27 deletions
diff --git a/src/modinfodialogtab.h b/src/modinfodialogtab.h index 7a42bf7e..dff1732d 100644 --- a/src/modinfodialogtab.h +++ b/src/modinfodialogtab.h @@ -4,8 +4,14 @@ #include "modinfodialogfwd.h" #include <QObject> -namespace MOShared { class FilesOrigin; } -namespace Ui { class ModInfoDialog; } +namespace MOShared +{ +class FilesOrigin; +} +namespace Ui +{ +class ModInfoDialog; +} class Settings; class OrganizerCore; @@ -22,21 +28,14 @@ struct ModInfoDialogTabContext ModInfoPtr mod; MOShared::FilesOrigin* origin; - ModInfoDialogTabContext( - OrganizerCore& core, - PluginContainer& plugin, - QWidget* parent, - Ui::ModInfoDialog* ui, - ModInfoTabIDs id, - ModInfoPtr mod, - MOShared::FilesOrigin* origin) : - core(core), plugin(plugin), parent(parent), ui(ui), id(id), - mod(mod), origin(origin) - { - } + ModInfoDialogTabContext(OrganizerCore& core, PluginContainer& plugin, QWidget* parent, + Ui::ModInfoDialog* ui, ModInfoTabIDs id, ModInfoPtr mod, + MOShared::FilesOrigin* origin) + : core(core), plugin(plugin), parent(parent), ui(ui), id(id), mod(mod), + origin(origin) + {} }; - // base class for all tabs in the mod info dialog // // when the dialog is opened or when next/previous is clicked, the sequence is: @@ -72,11 +71,11 @@ class ModInfoDialogTab : public QObject Q_OBJECT; public: - ModInfoDialogTab(const ModInfoDialogTab&) = delete; + ModInfoDialogTab(const ModInfoDialogTab&) = delete; ModInfoDialogTab& operator=(const ModInfoDialogTab&) = delete; - ModInfoDialogTab(ModInfoDialogTab&&) = default; - ModInfoDialogTab& operator=(ModInfoDialogTab&&) = default; - virtual ~ModInfoDialogTab() = default; + ModInfoDialogTab(ModInfoDialogTab&&) = default; + ModInfoDialogTab& operator=(ModInfoDialogTab&&) = default; + virtual ~ModInfoDialogTab() = default; // called by ModInfoDialog every time this tab is selected; this will call // firstActivation() the first time it's called, until resetFirstActivation() @@ -89,7 +88,6 @@ public: // void resetFirstActivation(); - // called when the selected mod changed, `mod` can never be empty, but // `origin` can (if the mod is not active, for example) // @@ -143,7 +141,6 @@ public: // virtual bool canClose(); - // called after the dialog is closed, tabs should save whatever UI state they // want // @@ -154,7 +151,6 @@ public: // virtual void restoreState(const Settings& s); - // called on the selected tab when the Delete key is pressed on the keyboard; // tabs _must_ check which widget currently has focus to decide whether this // should be handled or not; do not blindly delete stuff when this is called @@ -163,7 +159,6 @@ public: // virtual bool deleteRequested(); - // return true if this tab can handle a separator mod, defaults to false; // when this returns false, the tab is removed from the widget entirely // @@ -188,7 +183,6 @@ public: // virtual bool usesOriginFiles() const; - // returns the currently selected mod // ModInfo& mod() const; @@ -202,7 +196,6 @@ public: // MOShared::FilesOrigin* origin() const; - // return this tab's ID // ModInfoTabIDs tabID() const; @@ -279,7 +272,6 @@ private: bool m_firstActivation; }; - // the Notes tab // class NotesTab : public ModInfoDialogTab @@ -307,4 +299,4 @@ private: void checkHasData(); }; -#endif // MODINFODIALOGTAB_H +#endif // MODINFODIALOGTAB_H |
