diff options
| author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-22 16:54:34 +0100 |
|---|---|---|
| committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-22 16:54:34 +0100 |
| commit | 5e5c9c07291f6b09623d31c92b1fb61c4ede576e (patch) | |
| tree | 0684c123db375336e0e03f0240155a12e744db16 /src/selectiondialog.h | |
| parent | 5ad912e1934061b38825801a27f7c12933878005 (diff) | |
Applied clang-format on source
Diffstat (limited to 'src/selectiondialog.h')
| -rw-r--r-- | src/selectiondialog.h | 54 |
1 files changed, 25 insertions, 29 deletions
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 <http://www.gnu.org/licenses/>. #ifndef SELECTIONDIALOG_H
#define SELECTIONDIALOG_H
-#include <QDialog>
#include <QAbstractButton>
+#include <QDialog>
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
|
