mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/statisctics] Adjust to display mode to preferences
Change-Id: I744cb8e88fd2c5d14bf4c288037762b8f3a8fa8c
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "box_controller.h"
|
||||
#include "../apps_container.h"
|
||||
#include <math.h>
|
||||
|
||||
namespace Statistics {
|
||||
@@ -68,7 +69,8 @@ void BoxController::reloadBannerView() {
|
||||
CalculPointer calculationMethods[5] = {&Store::minValue, &Store::firstQuartile, &Store::median, &Store::thirdQuartile,
|
||||
&Store::maxValue};
|
||||
float calculation = (m_store->*calculationMethods[(int)m_view.selectedQuantile()])();
|
||||
Float(calculation).convertFloatToText(buffer, Float::bufferSizeForFloatsWithPrecision(Constant::LargeNumberOfSignificantDigits), Constant::LargeNumberOfSignificantDigits);
|
||||
AppsContainer * container = (AppsContainer *)app()->container();
|
||||
Float(calculation).convertFloatToText(buffer, Float::bufferSizeForFloatsWithPrecision(Constant::LargeNumberOfSignificantDigits), Constant::LargeNumberOfSignificantDigits, container->preferences()->displayMode());
|
||||
m_boxBannerView.setLegendAtIndex(buffer, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user