aboutsummaryrefslogtreecommitdiffstats
path: root/utils/alsoft-config/mainwindow.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-10-12 05:52:34 -0700
committerChris Robinson <[email protected]>2015-10-12 05:52:34 -0700
commitb4bc36c4a00f10e161d37d6d928be2dbc6fd7e04 (patch)
treee34ea7f4d54b4efb64d6e003b4e8649618307bc4 /utils/alsoft-config/mainwindow.cpp
parented0f3bc1b1164acd4c464f09ef89c6436b1fd16c (diff)
Reorganize the HRTF group box
The three radio buttons are moved to a combo box, which gives a bit more width for the file list contents.
Diffstat (limited to 'utils/alsoft-config/mainwindow.cpp')
-rw-r--r--utils/alsoft-config/mainwindow.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp
index a79098a4..c01bdb38 100644
--- a/utils/alsoft-config/mainwindow.cpp
+++ b/utils/alsoft-config/mainwindow.cpp
@@ -190,6 +190,8 @@ MainWindow::MainWindow(QWidget *parent) :
ui->stereoModeCombo->addItem(stereoModeList[i].name);
ui->stereoModeCombo->adjustSize();
+ ui->hrtfStateComboBox->adjustSize();
+
#if !defined(HAVE_NEON) && !defined(HAVE_SSE)
ui->cpuExtDisabledLabel->move(ui->cpuExtDisabledLabel->x(), ui->cpuExtDisabledLabel->y() - 60);
#else
@@ -433,13 +435,13 @@ void MainWindow::loadConfig(const QString &fname)
ui->enableNeonCheckBox->setChecked(!disabledCpuExts.contains("neon", Qt::CaseInsensitive));
if(settings.value("hrtf").toString() == QString())
- ui->hrtfAutoButton->setChecked(true);
+ ui->hrtfStateComboBox->setCurrentIndex(0);
else
{
if(settings.value("hrtf", true).toBool())
- ui->hrtfForceButton->setChecked(true);
+ ui->hrtfStateComboBox->setCurrentIndex(1);
else
- ui->hrtfDisableButton->setChecked(true);
+ ui->hrtfStateComboBox->setCurrentIndex(2);
}
QStringList hrtf_tables = settings.value("hrtf_tables").toStringList();
@@ -602,9 +604,9 @@ void MainWindow::saveConfig(const QString &fname) const
strlist.append("neon");
settings.setValue("disable-cpu-exts", strlist.join(QChar(',')));
- if(ui->hrtfForceButton->isChecked())
+ if(ui->hrtfStateComboBox->currentIndex() == 1)
settings.setValue("hrtf", "true");
- else if(ui->hrtfDisableButton->isChecked())
+ else if(ui->hrtfStateComboBox->currentIndex() == 2)
settings.setValue("hrtf", "false");
else
settings.setValue("hrtf", QString());