Mercurial > hg > svgui
comparison widgets/ListInputDialog.h @ 640:c6d705bf1672
Merge from branch "qt5". This revision actually builds with Qt4 (late releases) or Qt5, though it will warn on configure with Qt4.
author | Chris Cannam |
---|---|
date | Tue, 14 May 2013 12:36:43 +0100 |
parents | d632a1e87018 |
children | 05d614f6e46d |
comparison
equal
deleted
inserted
replaced
632:9d8f6552014d | 640:c6d705bf1672 |
---|---|
35 Q_OBJECT | 35 Q_OBJECT |
36 | 36 |
37 public: | 37 public: |
38 ListInputDialog(QWidget *parent, const QString &title, | 38 ListInputDialog(QWidget *parent, const QString &title, |
39 const QString &label, const QStringList &list, | 39 const QString &label, const QStringList &list, |
40 int current = 0, Qt::WFlags f = 0); | 40 int current = 0); |
41 virtual ~ListInputDialog(); | 41 virtual ~ListInputDialog(); |
42 | 42 |
43 void setItemAvailability(int item, bool available); | 43 void setItemAvailability(int item, bool available); |
44 void setFootnote(QString footnote); | 44 void setFootnote(QString footnote); |
45 | 45 |
46 QString getCurrentString() const; | 46 QString getCurrentString() const; |
47 | 47 |
48 static QString getItem(QWidget *parent, const QString &title, | 48 static QString getItem(QWidget *parent, const QString &title, |
49 const QString &label, const QStringList &list, | 49 const QString &label, const QStringList &list, |
50 int current = 0, bool *ok = 0, Qt::WFlags f = 0); | 50 int current = 0, bool *ok = 0); |
51 | 51 |
52 protected: | 52 protected: |
53 QStringList m_strings; | 53 QStringList m_strings; |
54 std::vector<QRadioButton *> m_radioButtons; | 54 std::vector<QRadioButton *> m_radioButtons; |
55 QLabel *m_footnote; | 55 QLabel *m_footnote; |