blob: 906edcbf7a5ff9fedfeddbd8ba13f7205c26df65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef WEBRADIODIALOG_H
#define WEBRADIODIALOG_H
#include <QDialog>
#include <QLineEdit>
#include <QTreeView>
#include <QStandardItemModel>
class WebRadioDialog : public QDialog {
Q_OBJECT
public:
enum WrRole { DescriptionRole, UrlRole };
explicit WebRadioDialog(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
const QString description() { return mDescription->text(); }
const QString url() { return mUrl->text(); }
private slots:
void populate();
void deleteSelected();
void add();
private:
QLineEdit *mDescription;
QLineEdit *mUrl;
QStandardItemModel *mModel;
QTreeView *mView;
};
#endif // WEBRADIODIALOG_H
|