From 5e5c9c07291f6b09623d31c92b1fb61c4ede576e Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Thu, 22 Feb 2018 16:54:34 +0100 Subject: Applied clang-format on source --- src/transfersavesdialog.h | 81 +++++++++++++++++++++++------------------------ 1 file changed, 40 insertions(+), 41 deletions(-) (limited to 'src/transfersavesdialog.h') diff --git a/src/transfersavesdialog.h b/src/transfersavesdialog.h index dee41c72..81c44f57 100644 --- a/src/transfersavesdialog.h +++ b/src/transfersavesdialog.h @@ -20,8 +20,8 @@ along with Mod Organizer. If not, see . #ifndef TRANSFERSAVESDIALOG_H #define TRANSFERSAVESDIALOG_H -#include "tutorabledialog.h" #include "profile.h" +#include "tutorabledialog.h" class QListWidget; #include @@ -29,73 +29,72 @@ class QPushButton; #include class QWidget; -#include #include +#include #include -namespace Ui { class TransferSavesDialog; } -namespace MOBase { class IPluginGame; } -namespace MOBase { class ISaveGame; } +namespace Ui { +class TransferSavesDialog; +} +namespace MOBase { +class IPluginGame; +} +namespace MOBase { +class ISaveGame; +} class TransferSavesDialog : public MOBase::TutorableDialog { - Q_OBJECT + Q_OBJECT public: - explicit TransferSavesDialog(const Profile &profile, - MOBase::IPluginGame const *gamePlugin, - QWidget *parent = 0); - ~TransferSavesDialog(); + explicit TransferSavesDialog(const Profile& profile, MOBase::IPluginGame const* gamePlugin, QWidget* parent = 0); + ~TransferSavesDialog(); private slots: - void on_moveToLocalBtn_clicked(); + void on_moveToLocalBtn_clicked(); - void on_doneButton_clicked(); + void on_doneButton_clicked(); - void on_globalCharacterList_currentTextChanged(const QString ¤tText); + void on_globalCharacterList_currentTextChanged(const QString& currentText); - void on_localCharacterList_currentTextChanged(const QString ¤tText); + void on_localCharacterList_currentTextChanged(const QString& currentText); - void on_copyToLocalBtn_clicked(); + void on_copyToLocalBtn_clicked(); - void on_moveToGlobalBtn_clicked(); + void on_moveToGlobalBtn_clicked(); - void on_copyToGlobalBtn_clicked(); + void on_copyToGlobalBtn_clicked(); private: - enum OverwriteMode { OVERWRITE_ASK, OVERWRITE_YES, OVERWRITE_NO }; + enum OverwriteMode { OVERWRITE_ASK, OVERWRITE_YES, OVERWRITE_NO }; private: - void refreshGlobalCharacters(); - void refreshLocalCharacters(); - void refreshGlobalSaves(); - void refreshLocalSaves(); - bool testOverwrite(OverwriteMode &overwriteMode, - const QString &destinationFile); + void refreshGlobalCharacters(); + void refreshLocalCharacters(); + void refreshGlobalSaves(); + void refreshLocalSaves(); + bool testOverwrite(OverwriteMode& overwriteMode, const QString& destinationFile); private: - Ui::TransferSavesDialog *ui; + Ui::TransferSavesDialog* ui; - Profile m_Profile; + Profile m_Profile; - MOBase::IPluginGame const *m_GamePlugin; + MOBase::IPluginGame const* m_GamePlugin; - typedef std::unique_ptr SaveListItem; - typedef std::vector SaveList; - typedef std::map SaveCollection; - SaveCollection m_GlobalSaves; - SaveCollection m_LocalSaves; + typedef std::unique_ptr SaveListItem; + typedef std::vector SaveList; + typedef std::map SaveCollection; + SaveCollection m_GlobalSaves; + SaveCollection m_LocalSaves; - void refreshSaves(SaveCollection &saveCollection, const QString &savedir); - void refreshCharacters(SaveCollection const &saveCollection, - QListWidget *charList, QPushButton *copy, - QPushButton *move); + void refreshSaves(SaveCollection& saveCollection, const QString& savedir); + void refreshCharacters(SaveCollection const& saveCollection, QListWidget* charList, QPushButton* copy, + QPushButton* move); - bool transferCharacters( - QString const &character, char const *message, SaveList &saves, - QString const &dest, - const std::function &method, - char const *errmsg); + bool transferCharacters(QString const& character, char const* message, SaveList& saves, QString const& dest, + const std::function& method, char const* errmsg); }; #endif // TRANSFERSAVESDIALOG_H -- cgit v1.3.1