From f2e1e4bfc7631e64b1e65289fadea33fc5fd143f Mon Sep 17 00:00:00 2001 From: Joao Santos Date: Sat, 12 Dec 2020 13:11:09 +0000 Subject: [PATCH] Removed decimal places from the median value. --- app/docks/FramePropertiesDock.cpp | 2 +- app/widgets/HistogramWidget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/docks/FramePropertiesDock.cpp b/app/docks/FramePropertiesDock.cpp index c08b425..e8215d2 100644 --- a/app/docks/FramePropertiesDock.cpp +++ b/app/docks/FramePropertiesDock.cpp @@ -479,7 +479,7 @@ void FramePropertiesDock::updateStatistiques() labelCountValue->setText( value.setNum( (float)counts, 'f', 0 ) ); double median = frame->getMedian( channel, min, max ); - labelMedianValue->setText( value.setNum( median, 'f', 1 ) ); + labelMedianValue->setText( value.setNum( median, 'f', 0 ) ); double entropy = frame->getEntropy( channel, min, max ); labelEntropyValue->setText( value.setNum( entropy, 'f', 2 ) ); diff --git a/app/widgets/HistogramWidget.cpp b/app/widgets/HistogramWidget.cpp index 4afe66b..6fc4fb7 100644 --- a/app/widgets/HistogramWidget.cpp +++ b/app/widgets/HistogramWidget.cpp @@ -938,7 +938,7 @@ void HistogramWidget::paintEvent( QPaintEvent* ) tipText += cellBeg + tr( "Median:" ) + cellMid; double median = frame->getMedian( m_channelType, 0, frame->getNumHistogramSegment() - 1 ); - tipText += value.setNum( median, 'f', 1 ) + cellEnd; + tipText += value.setNum( median, 'f', 0 ) + cellEnd; tipText += cellBeg + tr( "Entropy:" ) + cellMid; double entropy = frame->getEntropy( m_channelType, 0, frame->getNumHistogramSegment() - 1 );