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/transfersavesdialog.h | 81 ++++++++++++++++++++++++----------------------- 1 file changed, 41 insertions(+), 40 deletions(-) (limited to 'src/transfersavesdialog.h') diff --git a/src/transfersavesdialog.h b/src/transfersavesdialog.h index 81c44f57..dee41c72 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 "profile.h" #include "tutorabledialog.h" +#include "profile.h" class QListWidget; #include @@ -29,72 +29,73 @@ 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& currentText); + void on_globalCharacterList_currentTextChanged(const QString ¤tText); - void on_localCharacterList_currentTextChanged(const QString& currentText); + void on_localCharacterList_currentTextChanged(const QString ¤tText); - 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