diff options
Diffstat (limited to 'examples/itemmodel')
-rw-r--r-- | examples/itemmodel/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/itemmodel/main.cpp b/examples/itemmodel/main.cpp index d6263c7c..1ee6ca25 100644 --- a/examples/itemmodel/main.cpp +++ b/examples/itemmodel/main.cpp @@ -105,9 +105,6 @@ GraphDataGenerator::GraphDataGenerator(Q3DBars *bargraph, QTableWidget *tableWid // Set selection mode to slice row m_graph->setSelectionMode(QDataVis::SelectionItemAndRow | QDataVis::SelectionSlice); - // Set font - m_graph->setFont(QFont("Impact", 20)); - //! [6] #endif @@ -116,6 +113,9 @@ GraphDataGenerator::GraphDataGenerator(Q3DBars *bargraph, QTableWidget *tableWid // Set theme m_graph->setTheme(new Q3DTheme(QDataVis::ThemeDigia)); + // Set font + m_graph->theme()->setFont(QFont("Impact", 20)); + // Set preset camera position m_graph->scene()->activeCamera()->setCameraPreset(QDataVis::CameraPresetFront); //! [7] |