diff options
| author | Tannin <devnull@localhost> | 2015-03-09 12:34:34 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-03-09 12:34:34 +0100 |
| commit | 7a1ae9b0f1560c9eda32e032796fbb3fd56ff236 (patch) | |
| tree | dea71435ac1042cb008fcd9f7b1ec57e6ea91227 /src/selectiondialog.h | |
| parent | d45ebf134819e1559718681becca9c4139fb7151 (diff) | |
| parent | db2954e8eb41da715b9e7d79a72e225797401413 (diff) | |
Merge with branch1.2
Diffstat (limited to 'src/selectiondialog.h')
| -rw-r--r-- | src/selectiondialog.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/selectiondialog.h b/src/selectiondialog.h index fe148859..43ba9767 100644 --- a/src/selectiondialog.h +++ b/src/selectiondialog.h @@ -33,7 +33,7 @@ class SelectionDialog : public QDialog public:
- explicit SelectionDialog(const QString &description, QWidget *parent = 0);
+ explicit SelectionDialog(const QString &description, QWidget *parent = 0, const QSize &iconSize = QSize());
~SelectionDialog();
@@ -46,6 +46,8 @@ public: */
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);
+
int numChoices() const;
QVariant getChoiceData();
@@ -62,6 +64,7 @@ private: Ui::SelectionDialog *ui;
QAbstractButton *m_Choice;
bool m_ValidateByData;
+ QSize m_IconSize;
};
|
