comparison widgets/ListInputDialog.h @ 616:d632a1e87018 qt5

Build fixes for Qt5
author Chris Cannam
date Mon, 11 Mar 2013 14:23:52 +0000
parents 512ead25e842
children 05d614f6e46d
comparison
equal deleted inserted replaced
615:156a120345ae 616:d632a1e87018
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;