DecimalSpinner: Use BNumberFormat for formatting

Change-Id: Idb45e98a61a0f16893e20aa02b10d7b2e1705454
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7589
Reviewed-by: Emir SARI <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Emir SARI
2025-04-07 21:30:48 +00:00
committed by waddlesplash
parent caa62d911c
commit cf961dc707
2 changed files with 29 additions and 13 deletions
+5 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2015 Haiku, Inc. All rights reserved.
* Copyright 2015-2025 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT license.
*
* Authors:
@@ -9,6 +9,7 @@
#define _DECIMAL_SPINNER_H
#include <NumberFormat.h>
#include <Spinner.h>
@@ -37,7 +38,7 @@ public:
virtual void SetEnabled(bool enable);
uint32 Precision() const { return fPrecision; };
virtual void SetPrecision(uint32 precision) { fPrecision = precision; };
virtual void SetPrecision(uint32 precision);
double MinValue() const { return fMinValue; }
virtual void SetMinValue(double min);
@@ -87,8 +88,9 @@ private:
double fStep;
double fValue;
uint32 fPrecision;
BNumberFormat* fNumberFormat;
// FBC padding
// FBC padding
uint32 _reserved[20];
};