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:
@@ -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];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user