summaryrefslogtreecommitdiffstats
path: root/examples/spectrum/spectrumapp/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/spectrum/spectrumapp/main.cpp')
-rw-r--r--examples/spectrum/spectrumapp/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/spectrum/spectrumapp/main.cpp b/examples/spectrum/spectrumapp/main.cpp
index 0b17d064..e5994b20 100644
--- a/examples/spectrum/spectrumapp/main.cpp
+++ b/examples/spectrum/spectrumapp/main.cpp
@@ -71,6 +71,7 @@ MainApp::MainApp(Q3DBars *window)
m_chart->setGridVisible(false);
// Disable auto-scaling of height by defining explicit range
// By setting count to 0 we avoid getting any grid
+ m_chart->setValueAxis(new QValueAxis);
m_chart->valueAxis()->setSegmentCount(0);
m_chart->valueAxis()->setRange(0.0, 1.0);
// Disable shadows