summaryrefslogtreecommitdiff
path: root/src/selectiondialog.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2022-05-17 11:47:01 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2023-07-09 17:20:40 +0200
commitd13f6bb870cdda71257f665367be8ef9fca86255 (patch)
tree52e214718478f1e52856572f5aa1a2ac58537f9f /src/selectiondialog.h
parent86bb01ba9eac879d3685c439ac9da0028bc4bc80 (diff)
Apply clang-format.
Diffstat (limited to 'src/selectiondialog.h')
-rw-r--r--src/selectiondialog.h35
1 files changed, 19 insertions, 16 deletions
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 <http://www.gnu.org/licenses/>.
#ifndef SELECTIONDIALOG_H
#define SELECTIONDIALOG_H
-#include <QDialog>
#include <QAbstractButton>
+#include <QDialog>
-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