summaryrefslogtreecommitdiffstats
path: root/examples/itemmodel/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/itemmodel/main.cpp')
-rw-r--r--examples/itemmodel/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/itemmodel/main.cpp b/examples/itemmodel/main.cpp
index 46aa8bb8..015470d1 100644
--- a/examples/itemmodel/main.cpp
+++ b/examples/itemmodel/main.cpp
@@ -107,10 +107,10 @@ GraphDataGenerator::GraphDataGenerator(Q3DBars *bargraph, QTableWidget *tableWid
//! [7]
// Set theme
- m_graph->setTheme(new Q3DTheme(Q3DTheme::ThemeDigia));
+ m_graph->setActiveTheme(new Q3DTheme(Q3DTheme::ThemeDigia));
// Set font
- m_graph->theme()->setFont(QFont("Impact", 20));
+ m_graph->activeTheme()->setFont(QFont("Impact", 20));
// Set preset camera position
m_graph->scene()->activeCamera()->setCameraPreset(Q3DCamera::CameraPresetFront);