summaryrefslogtreecommitdiffstats
path: root/src/charts/domain/abstractdomain.cpp
diff options
context:
space:
mode:
authorTitta Heikkala <titta.heikkala@theqtcompany.com>2015-04-23 12:30:33 +0300
committerTitta Heikkala <titta.heikkala@theqtcompany.com>2015-04-23 12:54:21 +0300
commit143be951b1fe8316b0dffb9010810c9cb1941ee0 (patch)
treeea1c19d7641f97e48772354ef9b4483383ba2110 /src/charts/domain/abstractdomain.cpp
parent7b74d88b3f3df27d3f74e88e2ceed75b65bce2e5 (diff)
Fix QNX build issue
Use qmath and cmath methods instead of math.h methods. Change-Id: I7c853f2e1218a1d3cde15a089192c24a6b0b1395 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Diffstat (limited to 'src/charts/domain/abstractdomain.cpp')
-rw-r--r--src/charts/domain/abstractdomain.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/charts/domain/abstractdomain.cpp b/src/charts/domain/abstractdomain.cpp
index 842ffedf..1ef6c77d 100644
--- a/src/charts/domain/abstractdomain.cpp
+++ b/src/charts/domain/abstractdomain.cpp
@@ -19,6 +19,7 @@
#include <private/abstractdomain_p.h>
#include <private/qabstractaxis_p.h>
#include <QtCore/QtMath>
+#include <cmath>
QT_CHARTS_BEGIN_NAMESPACE
@@ -173,7 +174,7 @@ void AbstractDomain::looseNiceNumbers(qreal &min, qreal &max, int &ticksCount)
qreal AbstractDomain::niceNumber(qreal x, bool ceiling)
{
- qreal z = qPow(10, qFloor(log10(x))); //find corresponding number of the form of 10^n than is smaller than x
+ qreal z = qPow(10, qFloor(std::log10(x))); //find corresponding number of the form of 10^n than is smaller than x
qreal q = x / z; //q<10 && q>=1;
if (ceiling) {