mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Use nice format for numbers.
This commit is contained in:
parent
f381005184
commit
09b4e0e21b
1 changed files with 3 additions and 2 deletions
|
@ -183,7 +183,7 @@ PointDetailsWidget::PointDetailsWidget(
|
||||||
for (const auto &value : _chartData.lines.front().y) {
|
for (const auto &value : _chartData.lines.front().y) {
|
||||||
const auto valueText = Ui::Text::String(
|
const auto valueText = Ui::Text::String(
|
||||||
_textStyle,
|
_textStyle,
|
||||||
QString::number(value / multiplier));
|
Lang::FormatExactCountDecimal(value / multiplier));
|
||||||
const auto usdText = Ui::Text::String(
|
const auto usdText = Ui::Text::String(
|
||||||
_textStyle,
|
_textStyle,
|
||||||
Info::ChannelEarn::ToUsd(
|
Info::ChannelEarn::ToUsd(
|
||||||
|
@ -345,7 +345,8 @@ void PointDetailsWidget::setXIndex(int xIndex) {
|
||||||
tr::now));
|
tr::now));
|
||||||
copy.value.setText(
|
copy.value.setText(
|
||||||
_textStyle,
|
_textStyle,
|
||||||
QString::number(dataLine.y[xIndex] / multiplier));
|
Lang::FormatExactCountDecimal(
|
||||||
|
dataLine.y[xIndex] / multiplier));
|
||||||
_lines.push_back(std::move(copy));
|
_lines.push_back(std::move(copy));
|
||||||
textLine.name.setText(
|
textLine.name.setText(
|
||||||
_textStyle,
|
_textStyle,
|
||||||
|
|
Loading…
Add table
Reference in a new issue