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/selectiondialog.h | 54 +++++++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 25 deletions(-) (limited to 'src/selectiondialog.h') diff --git a/src/selectiondialog.h b/src/selectiondialog.h index 3f066707..3c4b25df 100644 --- a/src/selectiondialog.h +++ b/src/selectiondialog.h @@ -20,50 +20,54 @@ along with Mod Organizer. If not, see . #ifndef SELECTIONDIALOG_H #define SELECTIONDIALOG_H -#include #include +#include namespace Ui { class SelectionDialog; } -class SelectionDialog : public QDialog { - Q_OBJECT - +class SelectionDialog : public QDialog +{ + Q_OBJECT + public: - explicit SelectionDialog(const QString& description, QWidget* parent = 0, const QSize& iconSize = QSize()); - ~SelectionDialog(); + explicit SelectionDialog(const QString &description, QWidget *parent = 0, const QSize &iconSize = QSize()); - /** - * @brief add a choice to the dialog - * @param buttonText the text to be displayed on the button - * @param description the description that shows up under in small letters inside the button - * @param data data to be stored with the button. Please note that as soon as one choice has data associated with it - * (non-invalid QVariant) all buttons that contain no data will be treated as "cancel" buttons - */ - void addChoice(const QString& buttonText, const QString& description, const QVariant& data); + ~SelectionDialog(); - void addChoice(const QIcon& icon, const QString& buttonText, const QString& description, const QVariant& data); + /** + * @brief add a choice to the dialog + * @param buttonText the text to be displayed on the button + * @param description the description that shows up under in small letters inside the button + * @param data data to be stored with the button. Please note that as soon as one choice has data associated with it (non-invalid QVariant) + * all buttons that contain no data will be treated as "cancel" buttons + */ + void addChoice(const QString &buttonText, const QString &description, const QVariant &data); - int numChoices() const; + void addChoice(const QIcon &icon, const QString &buttonText, const QString &description, const QVariant &data); - QVariant getChoiceData(); - QString getChoiceString(); + int numChoices() const; - void disableCancel(); + QVariant getChoiceData(); + QString getChoiceString(); + + void disableCancel(); private slots: - void on_buttonBox_clicked(QAbstractButton* button); + void on_buttonBox_clicked(QAbstractButton *button); - void on_cancelButton_clicked(); + void on_cancelButton_clicked(); private: - Ui::SelectionDialog* ui; - QAbstractButton* m_Choice; - bool m_ValidateByData; - QSize m_IconSize; + + Ui::SelectionDialog *ui; + QAbstractButton *m_Choice; + bool m_ValidateByData; + QSize m_IconSize; + }; #endif // SELECTIONDIALOG_H -- cgit v1.3.1