1
0
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:
Nils Fenner 2016-01-03 13:13:04 +01:00 committed by tux3
parent a6024b85ea
commit 1fb4d0d9f3
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 5 additions and 37 deletions

View File

@ -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()));
}

View File

@ -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>