Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
feat(audio): add slider tickmarks, improving better visible orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
antis81 committed Jun 2, 2016
1 parent f72baa6 commit 431a10f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/widget/form/settings/avform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 431a10f

Please sign in to comment.