Removed some unused EditorUtils functions
Signed-off-by: Chris Galvan <chgalvan@amazon.com>
This commit is contained in:
@@ -176,23 +176,6 @@ QString TrimTrailingZeros(QString str)
|
||||
return str;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// This function is supposed to format float in user-friendly way,
|
||||
// omitting the exponent notation.
|
||||
//
|
||||
// Why not using printf? Its formatting rules has following drawbacks:
|
||||
// %g - will use exponent for small numbers;
|
||||
// %.Nf - doesn't allow to control total amount of significant numbers,
|
||||
// which exposes limited precision during binary-to-decimal fraction
|
||||
// conversion.
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void FormatFloatForUI(QString& str, int significantDigits, double value)
|
||||
{
|
||||
str = TrimTrailingZeros(QString::number(value, 'f', significantDigits));
|
||||
return;
|
||||
}
|
||||
//////////////////////////////////////////////////////////////////////////-
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
QColor ColorLinearToGamma(ColorF col)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user