From d13f6bb870cdda71257f665367be8ef9fca86255 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Tue, 17 May 2022 11:47:01 +0200 Subject: Apply clang-format. --- src/selectiondialog.h | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) (limited to 'src/selectiondialog.h') diff --git a/src/selectiondialog.h b/src/selectiondialog.h index 472baa19..8c333d3d 100644 --- a/src/selectiondialog.h +++ b/src/selectiondialog.h @@ -20,33 +20,38 @@ along with Mod Organizer. If not, see . #ifndef SELECTIONDIALOG_H #define SELECTIONDIALOG_H -#include #include +#include -namespace Ui { +namespace Ui +{ class SelectionDialog; } class SelectionDialog : public QDialog { Q_OBJECT - -public: - 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(); /** * @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 + * @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 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; @@ -58,17 +63,15 @@ public: private slots: - void on_buttonBox_clicked(QAbstractButton *button); + void on_buttonBox_clicked(QAbstractButton* button); void on_cancelButton_clicked(); private: - - Ui::SelectionDialog *ui; - QAbstractButton *m_Choice; + Ui::SelectionDialog* ui; + QAbstractButton* m_Choice; bool m_ValidateByData; QSize m_IconSize; - }; -#endif // SELECTIONDIALOG_H +#endif // SELECTIONDIALOG_H -- cgit v1.3.1