1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

feat(audio): add slider tickmarks, improving better visible orientation

This commit is contained in:
Nils Fenner 2016-05-28 14:41:46 +02:00
parent f72baa613f
commit 431a10f82b
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C

View File

@ -75,6 +75,10 @@ AVForm::AVForm() :
.arg(audio.maxInputGain()));
bodyUI->microphoneSlider->setMinimum(qRound(audio.minInputGain()) * 10);
bodyUI->microphoneSlider->setMaximum(qRound(audio.maxInputGain()) * 10);
bodyUI->microphoneSlider->setTickPosition(QSlider::TicksBothSides);
bodyUI->microphoneSlider->setTickInterval(
(qAbs(bodyUI->microphoneSlider->minimum()) +
bodyUI->microphoneSlider->maximum()) / 4);
bodyUI->microphoneSlider->setTracking(false);
bodyUI->microphoneSlider->installEventFilter(this);
connect(bodyUI->microphoneSlider, &QSlider::valueChanged,