diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-11-22 07:56:04 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-11-22 08:30:09 +0200 |
commit | 3ce4ae10e54e9c5d73826f4d6f8c5e442ac2d525 (patch) | |
tree | 6ae0bb7c1ff8720f6340453b39d481ffcf526127 /examples/customproxy/rainfallgraph.cpp | |
parent | d12f993ca802ff02091d6a5141d2847641bc65a8 (diff) |
User-modifiable themes, part 1
Task-number: QTRD-2120
+ old functionality remade
- new functionality to be added
+ fixed a compilation error in qbarseries for mingw
Change-Id: I710c97b5d4023861be8e8cc5cc61c05bb4644964
Signed-off-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'examples/customproxy/rainfallgraph.cpp')
-rw-r--r-- | examples/customproxy/rainfallgraph.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/customproxy/rainfallgraph.cpp b/examples/customproxy/rainfallgraph.cpp index 36ab9786..a31200e8 100644 --- a/examples/customproxy/rainfallgraph.cpp +++ b/examples/customproxy/rainfallgraph.cpp @@ -22,6 +22,7 @@ #include <QtDataVisualization/q3dscene.h> #include <QtDataVisualization/q3dcamera.h> #include <QtDataVisualization/qbar3dseries.h> +#include <QtDataVisualization/q3dtheme.h> #include <QGuiApplication> #include <QFont> #include <QDebug> @@ -74,7 +75,7 @@ RainfallGraph::RainfallGraph(Q3DBars *rainfall) m_graph->setSelectionMode(QDataVis::SelectionItemAndColumn | QDataVis::SelectionSlice); // Set theme - m_graph->setTheme(QDataVis::ThemeArmyBlue); + m_graph->setTheme(new Q3DTheme(QDataVis::ThemeArmyBlue)); // Set camera position and zoom m_graph->scene()->activeCamera()->setCameraPreset(QDataVis::CameraPresetIsometricRightHigh); |