aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpdeviceprioritydialog.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2020-04-19 23:36:48 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2020-04-19 23:36:48 +0800
commit6d568d07b31ba2ae39703cfd272d3003ea542018 (patch)
tree58dca1ac27ffe9dd6bb045c5a71d04644b7a2e07 /qmidiplayer-desktop/qmpdeviceprioritydialog.hpp
parentc7bf3e37e6eaed6895c797f72ef116b42c6f8a44 (diff)
downloadQMidiPlayer-6d568d07b31ba2ae39703cfd272d3003ea542018.tar.xz
Legacy code massacre!
Complete reconstruction of the settings infrastructure. All options are now registered using a revamped option API. Legacy configuration files are no longer compatible. Please make a backup.
Diffstat (limited to 'qmidiplayer-desktop/qmpdeviceprioritydialog.hpp')
-rw-r--r--qmidiplayer-desktop/qmpdeviceprioritydialog.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/qmidiplayer-desktop/qmpdeviceprioritydialog.hpp b/qmidiplayer-desktop/qmpdeviceprioritydialog.hpp
index d48a2aa..78ce3fa 100644
--- a/qmidiplayer-desktop/qmpdeviceprioritydialog.hpp
+++ b/qmidiplayer-desktop/qmpdeviceprioritydialog.hpp
@@ -9,24 +9,28 @@ namespace Ui {
class qmpDevicePriorityDialog;
}
-class qmpDevicePriorityDialog : public QDialog
+class qmpDevicePriorityDialog:public QDialog
{
Q_OBJECT
public:
explicit qmpDevicePriorityDialog(QWidget *parent=nullptr);
~qmpDevicePriorityDialog();
- void setupRegisteredDevices();
+ void load(void* data);
+ void* save();
private slots:
void on_pbUp_clicked();
void on_pbDown_clicked();
void on_buttonBox_accepted();
-private:
+ void on_buttonBox_rejected();
+
+ private:
Ui::qmpDevicePriorityDialog *ui;
QStandardItemModel *model;
QList<QVariant> setdevs;
+ void setupRegisteredDevices();
};
#endif // QMPDEVICEPRIORITYDIALOG_HPP