Skip to content

Commit

Permalink
Use u::formatNumberScientific in TextVisualisationChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Nov 14, 2023
1 parent e82ffa7 commit 36b657c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/app/ui/visualisations/textvisualisationchannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#include "textvisualisationchannel.h"
#include "visualisationinfo.h"

#include "shared/utils/string.h"

#include "rendering/graphrenderer.h"

#include "app/preferences.h"
Expand All @@ -29,7 +31,7 @@ using namespace Qt::Literals::StringLiterals;

void TextVisualisationChannel::apply(double value, ElementVisual& elementVisual) const
{
elementVisual._text = QString::number(value, 'g', 3);
elementVisual._text = u::formatNumberScientific(value);
}

void TextVisualisationChannel::apply(const QString& value, ElementVisual& elementVisual) const
Expand Down

0 comments on commit 36b657c

Please sign in to comment.