diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-04-10 23:39:45 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-04-10 23:39:45 +0800 |
commit | 841eb920676d6c8ac6440c8929e7422e95a9c4c5 (patch) | |
tree | c28dd11fb908682e69d5eb6dc953d1e5bf66b5a7 /qmidiplayer-desktop/qmpsettingswindow.cpp | |
parent | e0e4f9f84bb8eed6cde71ff4d67286c2e26e4693 (diff) | |
download | QMidiPlayer-841eb920676d6c8ac6440c8929e7422e95a9c4c5.tar.xz |
The Last Judgement.
Diffstat (limited to 'qmidiplayer-desktop/qmpsettingswindow.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmpsettingswindow.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/qmidiplayer-desktop/qmpsettingswindow.cpp b/qmidiplayer-desktop/qmpsettingswindow.cpp index 2074972..2e6af6d 100644 --- a/qmidiplayer-desktop/qmpsettingswindow.cpp +++ b/qmidiplayer-desktop/qmpsettingswindow.cpp @@ -4,7 +4,8 @@ #include "ui_qmpsettingswindow.h" #include "qmpmainwindow.hpp" -QSettings *qmpSettingsWindow::settings=NULL; +QSettings* qmpSettingsWindow::settings=NULL; +QComboBox* qmpSettingsWindow::outwidget=NULL; void qmpFluidForEachOpt(void* data,char* /*name*/,char* option) { @@ -19,7 +20,7 @@ qmpSettingsWindow::qmpSettingsWindow(QWidget *parent) : ui->setupUi(this); connect(this,SIGNAL(dialogClosing()),parent,SLOT(dialogClosed())); settings=new QSettings(QDir::homePath()+QString("/.config/qmprc"),QSettings::IniFormat); - settingsInit(); + settingsInit();outwidget=ui->cbOutputDevice; } qmpSettingsWindow::~qmpSettingsWindow() @@ -37,6 +38,7 @@ void qmpSettingsWindow::closeEvent(QCloseEvent *event) } QListWidget* qmpSettingsWindow::getSFWidget(){return ui->lwSoundfont;} +QComboBox* qmpSettingsWindow::getDefaultOutWidget(){return outwidget;} void qmpSettingsWindow::on_buttonBox_accepted() { @@ -173,8 +175,7 @@ void qmpSettingsWindow::settingsInit() void qmpSettingsWindow::settingsUpdate() { - settings->setValue("Midi/DefaultOutput",settings->value("Midi/DefaultOutput","Internal FluidSynth")); - //this item is still a stub... + settings->setValue("Midi/DefaultOutput",ui->cbOutputDevice->currentText()); settings->setValue("Midi/DisableMapping",ui->cbDisableMapping->isChecked()?1:0); |