aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpsettingswindow.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-10-05 23:04:53 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-10-05 23:04:53 +0800
commit8cf35c5ceb10d5c54e933127fb60c5034ef8a149 (patch)
tree21d68963030f0fca87eef2e8503e32c97ceb0553 /qmidiplayer-desktop/qmpsettingswindow.hpp
parent5ad76bb13ecc29aeb5b2b71cb33a00add44c5b35 (diff)
downloadQMidiPlayer-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/qmpsettingswindow.hpp')
-rw-r--r--qmidiplayer-desktop/qmpsettingswindow.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/qmidiplayer-desktop/qmpsettingswindow.hpp b/qmidiplayer-desktop/qmpsettingswindow.hpp
index 72b0aa1..0e208ca 100644
--- a/qmidiplayer-desktop/qmpsettingswindow.hpp
+++ b/qmidiplayer-desktop/qmpsettingswindow.hpp
@@ -79,6 +79,8 @@ class QHexSpinBox:public QSpinBox
{return *reinterpret_cast<int*>(&u);}
};
+class qmpDevicePriorityDialog;
+
class qmpSettingsWindow:public QDialog
{
Q_OBJECT
@@ -109,7 +111,7 @@ class qmpSettingsWindow:public QDialog
void registerOptionEnumInt(std::string tab,std::string desc,std::string key,std::vector<std::string> options,int defaultval);
int getOptionEnumInt(std::string key);
void setOptionEnumInt(std::string key,int val);
- void verifySF();
+ void postInit();
signals:
void dialogClosing();
@@ -133,6 +135,8 @@ class qmpSettingsWindow:public QDialog
void on_pbExtDevSetup_clicked();
+ void on_pbDevPrio_clicked();
+
private:
Ui::qmpSettingsWindow *ui;
void settingsUpdate();
@@ -141,11 +145,10 @@ class qmpSettingsWindow:public QDialog
void updateCustomOptions();
qmpCustomizeWindow *cw;
qmpDevPropDialog *dps;
+ qmpDevicePriorityDialog *devpriod;
static QSettings *settings;
- static QComboBox* outwidget;
public:
static QSettings* getSettingsIntf(){return settings;}
- static QComboBox* getDefaultOutWidget();
};
#endif // QMPSETTINGSWINDOW_H