diff options
author | Arno <arno@disconnect.de> | 2017-10-15 09:17:50 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2017-10-15 09:17:50 +0200 |
commit | 1bcbd9e93eadcffec21d32100b70310abec9a58f (patch) | |
tree | 674920d3f07992fcf0e77a5bdbf43c98aaa6f58c /webradiodialog.h | |
parent | 7e1ebd90789ae1d9d9fdfc54988aad722667df4c (diff) | |
download | BeetPlayer-1bcbd9e93eadcffec21d32100b70310abec9a58f.tar.gz BeetPlayer-1bcbd9e93eadcffec21d32100b70310abec9a58f.tar.bz2 BeetPlayer-1bcbd9e93eadcffec21d32100b70310abec9a58f.zip |
Fix WebRadioDialog
Revamp the WebRadio Dialog: Make it possible to delete WebRadios.
Diffstat (limited to 'webradiodialog.h')
-rw-r--r-- | webradiodialog.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/webradiodialog.h b/webradiodialog.h index 96262dd..906edcb 100644 --- a/webradiodialog.h +++ b/webradiodialog.h @@ -3,18 +3,27 @@ #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 |