|
|
|
@ -69,6 +69,9 @@ AVForm::AVForm() :
@@ -69,6 +69,9 @@ AVForm::AVForm() :
|
|
|
|
|
bodyUI->playbackSlider->setValue(Settings::getInstance().getOutVolume()); |
|
|
|
|
bodyUI->microphoneSlider->setValue(Settings::getInstance().getInVolume()); |
|
|
|
|
|
|
|
|
|
bodyUI->playbackSlider->installEventFilter(this); |
|
|
|
|
bodyUI->microphoneSlider->installEventFilter(this); |
|
|
|
|
|
|
|
|
|
for (QComboBox* cb : findChildren<QComboBox*>()) |
|
|
|
|
{ |
|
|
|
|
cb->installEventFilter(this); |
|
|
|
@ -361,7 +364,7 @@ void AVForm::onMicrophoneValueChanged(int value)
@@ -361,7 +364,7 @@ void AVForm::onMicrophoneValueChanged(int value)
|
|
|
|
|
bool AVForm::eventFilter(QObject *o, QEvent *e) |
|
|
|
|
{ |
|
|
|
|
if ((e->type() == QEvent::Wheel) && |
|
|
|
|
(qobject_cast<QComboBox*>(o) || qobject_cast<QAbstractSpinBox*>(o) )) |
|
|
|
|
(qobject_cast<QComboBox*>(o) || qobject_cast<QAbstractSpinBox*>(o) || qobject_cast<QSlider*>(o))) |
|
|
|
|
{ |
|
|
|
|
e->ignore(); |
|
|
|
|
return true; |
|
|
|
|