Skip to content

Commit

Permalink
Set number of decimals to show to 2 (issue GRIS-UdeM/ControlGris#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
OKGougou committed Jun 30, 2024
1 parent b249a6f commit 145c063
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Source/PanelView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ PanelView::PanelView(AudioDescriptorsAudioProcessor& processor, Parameters& para
mDescriptorLapSlider.setDoubleClickReturnValue(true, 1.0);
mDescriptorOffsetSlider.setDoubleClickReturnValue(true, 0.0);

mDescriptorFactorSlider.setNumDecimalPlacesToDisplay(2);
mDescriptorSmoothSlider.setNumDecimalPlacesToDisplay(2);
mDescriptorSmoothCoefSlider.setNumDecimalPlacesToDisplay(2);
mDescriptorRangeSlider.setNumDecimalPlacesToDisplay(2);
mDescriptorMinFreqSlider.setNumDecimalPlacesToDisplay(2);
mDescriptorMaxFreqSlider.setNumDecimalPlacesToDisplay(2);
mDescriptorThresholdSlider.setNumDecimalPlacesToDisplay(2);
mDescriptorMinTimeSlider.setNumDecimalPlacesToDisplay(2);
mDescriptorMaxTimeSlider.setNumDecimalPlacesToDisplay(2);
mDescriptorLapSlider.setNumDecimalPlacesToDisplay(2);
mDescriptorOffsetSlider.setNumDecimalPlacesToDisplay(2);


if (parameter.getParameterID() == ParameterID::azimuth) {
addAndMakeVisible(mDescriptorLapLabel);
Expand Down

0 comments on commit 145c063

Please sign in to comment.