summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-04-12 09:51:08 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-04-12 10:50:02 +0300
commit7dedf74c6be8c23bd1a5640cbe0c960a36c6b9db (patch)
tree015e6ec40fd0bbaa9078e6bdc0ab45bf44efff63 /examples
parent624666518e9e2d5628ab042f30e70ca747fb4da7 (diff)
Theme moved to it's own class
Change-Id: Ib5888622f94b163fb9bda97ceb5339e88a9497ae Change-Id: Ib5888622f94b163fb9bda97ceb5339e88a9497ae Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com> Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/datavis3d/barchart/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/datavis3d/barchart/main.cpp b/examples/datavis3d/barchart/main.cpp
index b4ec93e5..3e732494 100644
--- a/examples/datavis3d/barchart/main.cpp
+++ b/examples/datavis3d/barchart/main.cpp
@@ -82,8 +82,8 @@ ChartDataGenerator::ChartDataGenerator(Q3DBars *barchart)
, m_styleTimer(0)
, m_presetTimer(0)
, m_themeTimer(0)
- , m_columnCount(9)
- , m_rowCount(9)
+ , m_columnCount(21)
+ , m_rowCount(21)
{
// Set up bar specifications; make the bars as wide as they are deep,
// and add a small space between the bars
@@ -304,12 +304,12 @@ void ChartDataGenerator::changePresetCamera()
void ChartDataGenerator::changeTheme()
{
- static int theme = 1; // TODO: System theme not yet implemented
+ static int theme = 0;
m_chart->setTheme((Q3DBars::ColorTheme)theme);
if (++theme > (int)Q3DBars::ThemeLight)
- theme = 1; // TODO: System theme not yet implemented
+ theme = 0;
}
int main(int argc, char **argv)