Audio preferences dialog: removed useless indicator

This commit is contained in:
f4exb 2018-03-30 09:42:29 +02:00
parent 8735ca97ca
commit ff5b6af6cc
2 changed files with 2 additions and 38 deletions

View File

@ -122,15 +122,13 @@ void AudioDialogX::on_audioInTree_currentItemChanged(
QString inDeviceName = currentItem->text(1);
int newIndex = ui->audioInTree->indexOfTopLevelItem(currentItem);
int oldIndex = ui->audioInTree->indexOfTopLevelItem(previousItem);
//qDebug("AudioDialogX::on_audioInTree_currentItemChanged: %s", qPrintable(inDeviceName));
if (newIndex != oldIndex) {
ui->inputResetKey->setChecked(false);
}
bool found = m_audioDeviceManager->getInputDeviceInfo(inDeviceName, inDeviceInfo);
m_audioDeviceManager->getInputDeviceInfo(inDeviceName, inDeviceInfo);
m_inputDeviceInfo = inDeviceInfo;
ui->inputDefaultText->setText(found ? "" : "D");
updateInputDisplay();
}
@ -148,10 +146,8 @@ void AudioDialogX::on_audioOutTree_currentItemChanged(
ui->outputResetKey->setChecked(false);
}
//qDebug("AudioDialogX::on_audioOutTree_currentItemChanged: %s", qPrintable(outDeviceName));
bool found = m_audioDeviceManager->getOutputDeviceInfo(outDeviceName, outDeviceInfo);
m_audioDeviceManager->getOutputDeviceInfo(outDeviceName, outDeviceInfo);
m_outputDeviceInfo = outDeviceInfo;
ui->outputDefaultText->setText(found ? "" : "D");
updateOutputDisplay();
}

View File

@ -100,22 +100,6 @@
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="outputDefaultText">
<property name="minimumSize">
<size>
<width>16</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Default values indicator</string>
</property>
<property name="text">
<string>D</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="outputReset">
<property name="maximumSize">
@ -429,22 +413,6 @@
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="inputDefaultText">
<property name="minimumSize">
<size>
<width>16</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Default values indicator</string>
</property>
<property name="text">
<string>D</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="inputReset">
<property name="maximumSize">