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/selectiondialog.h | 54 ++++++++++++++++++++++++--------------------------- 1 file changed, 25 insertions(+), 29 deletions(-) (limited to 'src/selectiondialog.h') diff --git a/src/selectiondialog.h b/src/selectiondialog.h index 3c4b25df..3f066707 100644 --- a/src/selectiondialog.h +++ b/src/selectiondialog.h @@ -20,54 +20,50 @@ 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 - -public: +class SelectionDialog : public QDialog { + Q_OBJECT - explicit SelectionDialog(const QString &description, QWidget *parent = 0, const QSize &iconSize = QSize()); +public: + explicit SelectionDialog(const QString& description, QWidget* parent = 0, const QSize& iconSize = QSize()); - ~SelectionDialog(); + ~SelectionDialog(); - /** - * @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); + /** + * @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); - void addChoice(const QIcon &icon, const QString &buttonText, const QString &description, const QVariant &data); + void addChoice(const QIcon& icon, const QString& buttonText, const QString& description, const QVariant& data); - int numChoices() const; + int numChoices() const; - QVariant getChoiceData(); - QString getChoiceString(); + QVariant getChoiceData(); + QString getChoiceString(); - void disableCancel(); + 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