diff options
| author | Tannin <devnull@localhost> | 2015-01-29 19:26:42 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-01-29 19:26:42 +0100 |
| commit | 8aa6dc4c7dcf4139cd0144207a327013bd3cb1dc (patch) | |
| tree | 06a28839549304e32b5774b37fba07ca4413bc03 /src/selectiondialog.h | |
| parent | c3a95bdef1d989a54684b966e042b12bf682046d (diff) | |
extended the game-plugin interface
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;
};
|
