summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-09-17 06:23:16 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-09-17 06:24:12 +0300
commit3811e05bc543fa21a9d32a518d4a3077c195c648 (patch)
tree09592689f1c3fbac2e61055a201581d505a609fd /src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp
parent7466f628139a39474feab4747e55addb63a97af2 (diff)
Doc snippet fixes
Change-Id: I3f4211e65ad285bf3edffd83c5822cd7c5718fc3 Change-Id: I3f4211e65ad285bf3edffd83c5822cd7c5718fc3 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp')
-rw-r--r--src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp b/src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp
index 85f2d7b4..7e5e63e7 100644
--- a/src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp
+++ b/src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp
@@ -19,6 +19,8 @@
//! [3]
#include <QtDataVisualization>
+using namespace QtDataVisualization;
+
int main(int argc, char **argv)
{
QGuiApplication app(argc, argv);
@@ -30,7 +32,7 @@ int main(int argc, char **argv)
//! [1]
QBarDataRow data;
data << 1.0 << 3.0 << 7.5 << 5.0 << 2.2;
- bars->dataProxy()->addRow(&data);
+ bars->activeDataProxy()->addRow(&data);
//! [1]
//! [2]
bars->show();