mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
clean up audio settings ui
This commit is contained in:
parent
a6024b85ea
commit
1fb4d0d9f3
|
@ -363,14 +363,12 @@ void AVForm::onPlaybackValueChanged(int value)
|
|||
{
|
||||
Audio::getInstance().setOutputVolume(value / 100.0);
|
||||
Settings::getInstance().setOutVolume(bodyUI->playbackSlider->value());
|
||||
bodyUI->playbackMax->setText(QString::number(value));
|
||||
}
|
||||
|
||||
void AVForm::onMicrophoneValueChanged(int value)
|
||||
{
|
||||
Audio::getInstance().setInputVolume(value / 100.0);
|
||||
Settings::getInstance().setInVolume(bodyUI->microphoneSlider->value());
|
||||
bodyUI->microphoneMax->setText(QString::number(value));
|
||||
}
|
||||
|
||||
void AVForm::createVideoSurface()
|
||||
|
@ -411,6 +409,4 @@ bool AVForm::eventFilter(QObject *o, QEvent *e)
|
|||
void AVForm::retranslateUi()
|
||||
{
|
||||
bodyUI->retranslateUi(this);
|
||||
bodyUI->playbackMax->setText(QString::number(bodyUI->playbackSlider->value()));
|
||||
bodyUI->microphoneMax->setText(QString::number(bodyUI->microphoneSlider->value()));
|
||||
}
|
||||
|
|
|
@ -41,13 +41,6 @@
|
|||
<string>Audio Settings</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="2" column="1">
|
||||
<widget class="QLabel" name="playbackMin">
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<widget class="QCheckBox" name="filterAudio">
|
||||
<property name="toolTip">
|
||||
|
@ -58,10 +51,10 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<item row="1" column="1">
|
||||
<widget class="QComboBox" name="outDevCombobox"/>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<item row="2" column="1">
|
||||
<widget class="QSlider" name="playbackSlider">
|
||||
<property name="toolTip">
|
||||
<string>Use slider to set volume of your speakers.</string>
|
||||
|
@ -77,21 +70,7 @@
|
|||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="microphoneLabel">
|
||||
<property name="text">
|
||||
<string>Microphone</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="3">
|
||||
<widget class="QLabel" name="microphoneMax">
|
||||
<property name="text">
|
||||
<string>100</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="3">
|
||||
<widget class="QLabel" name="playbackMax">
|
||||
<property name="text">
|
||||
<string>100</string>
|
||||
<string>Gain</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -102,14 +81,7 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QLabel" name="microphoneMin">
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="2">
|
||||
<item row="3" column="1">
|
||||
<widget class="QComboBox" name="inDevCombobox"/>
|
||||
</item>
|
||||
<item row="5" column="2">
|
||||
|
@ -128,7 +100,7 @@
|
|||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="playbackLabel">
|
||||
<property name="text">
|
||||
<string>Playback</string>
|
||||
<string>Volume</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
Loading…
Reference in New Issue
Block a user