mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -05:00
Audio preferences dialog: removed useless indicator
This commit is contained in:
parent
8735ca97ca
commit
ff5b6af6cc
@ -122,15 +122,13 @@ void AudioDialogX::on_audioInTree_currentItemChanged(
|
|||||||
QString inDeviceName = currentItem->text(1);
|
QString inDeviceName = currentItem->text(1);
|
||||||
int newIndex = ui->audioInTree->indexOfTopLevelItem(currentItem);
|
int newIndex = ui->audioInTree->indexOfTopLevelItem(currentItem);
|
||||||
int oldIndex = ui->audioInTree->indexOfTopLevelItem(previousItem);
|
int oldIndex = ui->audioInTree->indexOfTopLevelItem(previousItem);
|
||||||
//qDebug("AudioDialogX::on_audioInTree_currentItemChanged: %s", qPrintable(inDeviceName));
|
|
||||||
|
|
||||||
if (newIndex != oldIndex) {
|
if (newIndex != oldIndex) {
|
||||||
ui->inputResetKey->setChecked(false);
|
ui->inputResetKey->setChecked(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool found = m_audioDeviceManager->getInputDeviceInfo(inDeviceName, inDeviceInfo);
|
m_audioDeviceManager->getInputDeviceInfo(inDeviceName, inDeviceInfo);
|
||||||
m_inputDeviceInfo = inDeviceInfo;
|
m_inputDeviceInfo = inDeviceInfo;
|
||||||
ui->inputDefaultText->setText(found ? "" : "D");
|
|
||||||
|
|
||||||
updateInputDisplay();
|
updateInputDisplay();
|
||||||
}
|
}
|
||||||
@ -148,10 +146,8 @@ void AudioDialogX::on_audioOutTree_currentItemChanged(
|
|||||||
ui->outputResetKey->setChecked(false);
|
ui->outputResetKey->setChecked(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
//qDebug("AudioDialogX::on_audioOutTree_currentItemChanged: %s", qPrintable(outDeviceName));
|
m_audioDeviceManager->getOutputDeviceInfo(outDeviceName, outDeviceInfo);
|
||||||
bool found = m_audioDeviceManager->getOutputDeviceInfo(outDeviceName, outDeviceInfo);
|
|
||||||
m_outputDeviceInfo = outDeviceInfo;
|
m_outputDeviceInfo = outDeviceInfo;
|
||||||
ui->outputDefaultText->setText(found ? "" : "D");
|
|
||||||
|
|
||||||
updateOutputDisplay();
|
updateOutputDisplay();
|
||||||
}
|
}
|
||||||
|
@ -100,22 +100,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<widget class="QPushButton" name="outputReset">
|
<widget class="QPushButton" name="outputReset">
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
@ -429,22 +413,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<widget class="QPushButton" name="inputReset">
|
<widget class="QPushButton" name="inputReset">
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
|
Loading…
Reference in New Issue
Block a user