summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-08-20 07:27:08 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-08-20 08:55:56 +0300
commite1dfa9c1f2fac242f62d78a627ab3e9eca2903ab (patch)
tree0d8ebf41d6fe929ed6041cbbd5d56c3e959a3ab1 /examples
parent5b36e6a6160122db2a3c2bcc37edb6cd2cf95860 (diff)
Doc update: q3dscatter
+ QSizeF initialization fixes (float -> qreal) Change-Id: I050889a2919a3576214e2960a7141833e5482c82 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/barchart/main.cpp2
-rw-r--r--examples/rainfall/rainfallchart.cpp2
-rw-r--r--examples/spectrum/spectrumapp/main.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/barchart/main.cpp b/examples/barchart/main.cpp
index 040c92eb..2c3471ea 100644
--- a/examples/barchart/main.cpp
+++ b/examples/barchart/main.cpp
@@ -72,7 +72,7 @@ ChartDataGenerator::ChartDataGenerator(Q3DBars *barchart, QTableWidget *tableWid
{
// Set up bar specifications; make the bars as wide as they are deep,
// and add a small space between the bars
- m_chart->setBarSpecs(1.0, QSizeF(0.2f, 0.2f));
+ m_chart->setBarSpecs(1.0, QSizeF(0.2, 0.2));
#ifndef USE_STATIC_DATA
// Set up sample space; make it as deep as it's wide
diff --git a/examples/rainfall/rainfallchart.cpp b/examples/rainfall/rainfallchart.cpp
index cf517da6..1b3c574f 100644
--- a/examples/rainfall/rainfallchart.cpp
+++ b/examples/rainfall/rainfallchart.cpp
@@ -47,7 +47,7 @@ RainfallChart::RainfallChart(Q3DBars *rainfall)
// Set up bar specifications; make the bars as wide as they are deep,
// and add a small space between the bars
- m_chart->setBarSpecs(1.0, QSizeF(0.2f, 0.2f), true);
+ m_chart->setBarSpecs(1.0, QSizeF(0.2, 0.2), true);
// Set axis labels and titles
QStringList months;
diff --git a/examples/spectrum/spectrumapp/main.cpp b/examples/spectrum/spectrumapp/main.cpp
index 2e65180b..0b17d064 100644
--- a/examples/spectrum/spectrumapp/main.cpp
+++ b/examples/spectrum/spectrumapp/main.cpp
@@ -78,7 +78,7 @@ MainApp::MainApp(Q3DBars *window)
#if USE_CONES
// Set bar specifications; make them a bit wider than deep and make them be drawn 75%
// inside each other
- m_chart->setBarSpecs(1.25), QSizeF(0.2f, -0.75f));
+ m_chart->setBarSpecs(1.25), QSizeF(0.2, -0.75));
// Set bar type, smooth cones
m_chart->setBarType(QDataVis::Cones, true);
// Adjust zoom manually; automatic zoom level calculation does not work well with negative
@@ -86,7 +86,7 @@ MainApp::MainApp(Q3DBars *window)
m_chart->setCameraPosition(10.0f, 5.0f, 70);
#else
// Set bar specifications; make them twice as wide as they're deep
- m_chart->setBarSpecs(2.0, QSizeF(0.0f, 0.0f));
+ m_chart->setBarSpecs(2.0, QSizeF(0.0, 0.0));
// Set bar type, flat bars
m_chart->setBarType(QDataVis::Bars, false);
// Adjust camera position