summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-06-13 08:42:31 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-06-13 09:48:39 +0300
commitc89c18631f9d8770eb5db16a86043e6079cefaf3 (patch)
tree7481218166f37726106dadd074fab1ead9336f6a /examples
parentd557920485f0cc1094908f72ce3fffcd55acd941 (diff)
Removed invokables from C++ api
Added missing properties to declarativebars. Renamed boolean properties to conform with naming conventions. Change-Id: Ide93c2a456713e1e77ba0a01ccdc110d00377e83 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com> Reviewed-by: Pasi Keränen <pasi.keranen@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/qmlbarchart/qml/qmlbarchart/main.qml2
-rw-r--r--examples/rainfall/main.cpp2
-rw-r--r--examples/spectrum/spectrumapp/main.cpp2
-rw-r--r--examples/widget/chart.cpp4
4 files changed, 5 insertions, 5 deletions
diff --git a/examples/qmlbarchart/qml/qmlbarchart/main.qml b/examples/qmlbarchart/qml/qmlbarchart/main.qml
index 990c78e6..8007d66f 100644
--- a/examples/qmlbarchart/qml/qmlbarchart/main.qml
+++ b/examples/qmlbarchart/qml/qmlbarchart/main.qml
@@ -82,7 +82,7 @@ Item {
//x: mainview.x + mainview.width
//y: mainview.y
- grid: false
+ gridVisible: false
shadowQuality: Bars3D.ShadowNone
selectionMode: Bars3D.ModeNone
labelTransparency: Bars3D.TransparencyNone
diff --git a/examples/rainfall/main.cpp b/examples/rainfall/main.cpp
index 47acee0b..519ccdb6 100644
--- a/examples/rainfall/main.cpp
+++ b/examples/rainfall/main.cpp
@@ -96,7 +96,7 @@ RainfallChart::RainfallChart(Q3DBars *rainfall)
m_chart->setCameraPreset(PresetIsometricRightHigh);
// Disable grid
- m_chart->setGridEnabled(false);
+ m_chart->setGridVisible(false);
// Set window title
m_chart->setWindowTitle(QStringLiteral("Monthly rainfall in Northern Finland (2000-2012)"));
diff --git a/examples/spectrum/spectrumapp/main.cpp b/examples/spectrum/spectrumapp/main.cpp
index 4296a347..9865802a 100644
--- a/examples/spectrum/spectrumapp/main.cpp
+++ b/examples/spectrum/spectrumapp/main.cpp
@@ -87,7 +87,7 @@ MainApp::MainApp(Q3DBars *window)
{
m_chart->setupSampleSpace(SpectrumNumBands, SpectrumNumBands * 2);
// Disable grid
- m_chart->setGridEnabled(false);
+ m_chart->setGridVisible(false);
// Disable auto-scaling of height by defining tick count and step, even though we don't draw grid
// By setting count to 1 and step to the max we can get, we lock the scale of the bars.
m_chart->setTickCount(1, 1.0f);
diff --git a/examples/widget/chart.cpp b/examples/widget/chart.cpp
index c57a6752..5e7e98dc 100644
--- a/examples/widget/chart.cpp
+++ b/examples/widget/chart.cpp
@@ -272,12 +272,12 @@ void ChartModifier::changeShadowQuality(int quality)
void ChartModifier::setBackgroundEnabled(int enabled)
{
- m_chart->setBackgroundEnabled((bool)enabled);
+ m_chart->setBackgroundVisible((bool)enabled);
}
void ChartModifier::setGridEnabled(int enabled)
{
- m_chart->setGridEnabled((bool)enabled);
+ m_chart->setGridVisible((bool)enabled);
}
void ChartModifier::rotateX(int rotation)