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:
parent
f72baa613f
commit
431a10f82b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user