diff options
author | Chris Xiong <chirs241097@gmail.com> | 2019-10-05 23:04:53 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2019-10-05 23:04:53 +0800 |
commit | 8cf35c5ceb10d5c54e933127fb60c5034ef8a149 (patch) | |
tree | 21d68963030f0fca87eef2e8503e32c97ceb0553 /qmidiplayer-desktop/qmpdeviceprioritydialog.hpp | |
parent | 5ad76bb13ecc29aeb5b2b71cb33a00add44c5b35 (diff) | |
download | QMidiPlayer-8cf35c5ceb10d5c54e933127fb60c5034ef8a149.tar.xz |
Replaced the option "default output device" with a more powerful one.
Old code for default output device completely removed.
Diffstat (limited to 'qmidiplayer-desktop/qmpdeviceprioritydialog.hpp')
-rw-r--r-- | qmidiplayer-desktop/qmpdeviceprioritydialog.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpdeviceprioritydialog.hpp b/qmidiplayer-desktop/qmpdeviceprioritydialog.hpp new file mode 100644 index 0000000..d48a2aa --- /dev/null +++ b/qmidiplayer-desktop/qmpdeviceprioritydialog.hpp @@ -0,0 +1,32 @@ +#ifndef QMPDEVICEPRIORITYDIALOG_HPP +#define QMPDEVICEPRIORITYDIALOG_HPP + +#include <QDialog> +#include <QShowEvent> +#include <QStandardItemModel> + +namespace Ui { +class qmpDevicePriorityDialog; +} + +class qmpDevicePriorityDialog : public QDialog +{ + Q_OBJECT + +public: + explicit qmpDevicePriorityDialog(QWidget *parent=nullptr); + ~qmpDevicePriorityDialog(); + void setupRegisteredDevices(); + +private slots: + void on_pbUp_clicked(); + void on_pbDown_clicked(); + void on_buttonBox_accepted(); + +private: + Ui::qmpDevicePriorityDialog *ui; + QStandardItemModel *model; + QList<QVariant> setdevs; +}; + +#endif // QMPDEVICEPRIORITYDIALOG_HPP |