summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/customitems/customitemgraph.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2014-11-21 12:42:18 +0200
committerMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2014-11-21 13:51:05 +0200
commit2f7c12bfee0315baa46b69fdb5185c522ec7cb2b (patch)
treee55e9ca073a94fc3b731ed73f44787d02ab647ff /examples/datavisualization/customitems/customitemgraph.cpp
parentdfdbe9c36f229e16c863ebf53332c6333f6068f9 (diff)
Make customitems example actually show some custom items.
Change-Id: I056b71fc913e5fd68b895d6bf4b5676cbe7c6db0 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'examples/datavisualization/customitems/customitemgraph.cpp')
-rw-r--r--examples/datavisualization/customitems/customitemgraph.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/datavisualization/customitems/customitemgraph.cpp b/examples/datavisualization/customitems/customitemgraph.cpp
index 182bf7d7..404aa943 100644
--- a/examples/datavisualization/customitems/customitemgraph.cpp
+++ b/examples/datavisualization/customitems/customitemgraph.cpp
@@ -109,6 +109,9 @@ CustomItemGraph::CustomItemGraph(Q3DSurface *surface, QLabel *label)
titleLabel->setFacingCamera(true);
titleLabel->setBackgroundColor(QColor(0x66cdaa));
m_graph->addCustomItem(titleLabel);
+
+ toggleItemOne(true);
+ toggleItemTwo(true);
}
CustomItemGraph::~CustomItemGraph()