mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-04 16:01:14 -05:00
ValueDialZ: fixed display of int64 larger than max of int32 in absolute value
This commit is contained in:
parent
fcb0d99af5
commit
84c6488310
@ -185,7 +185,8 @@ QChar ValueDialZ::digitNeigh(QChar c, bool dir)
|
|||||||
|
|
||||||
QString ValueDialZ::formatText(qint64 value)
|
QString ValueDialZ::formatText(qint64 value)
|
||||||
{
|
{
|
||||||
QString str = QString("%1%2").arg(m_positiveOnly ? "" : value < 0 ? "-" : "+").arg(abs(value), m_numDigits, 10, QChar('0'));
|
qDebug("ValueDialZ::formatText: value: %lld", value);
|
||||||
|
QString str = QString("%1%2").arg(m_positiveOnly ? "" : value < 0 ? "-" : "+").arg(value < 0 ? -value : value, m_numDigits, 10, QChar('0'));
|
||||||
|
|
||||||
for(int i = 0; i < m_numDecimalPoints; i++)
|
for(int i = 0; i < m_numDecimalPoints; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user