summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/engine/theme.cpp
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-10-02 10:26:46 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-10-02 10:27:15 +0300
commit23052d3f50764e3d6a0def345d09c9a78d38857a (patch)
tree7fe8e3c3abf4e44ea3f62dc3022b0119ab966303 /src/datavisualization/engine/theme.cpp
parentdefd066b46329783c10ace4e67fddc4a2a65bf4c (diff)
Refactored ColorTheme -> Theme
Task-number: QTRD-2362 Change-Id: I042e57a2307f7465588ff3475a659e0483a45da8 Change-Id: I042e57a2307f7465588ff3475a659e0483a45da8 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/engine/theme.cpp')
-rw-r--r--src/datavisualization/engine/theme.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/datavisualization/engine/theme.cpp b/src/datavisualization/engine/theme.cpp
index 38a54196..d9f2974a 100644
--- a/src/datavisualization/engine/theme.cpp
+++ b/src/datavisualization/engine/theme.cpp
@@ -51,15 +51,15 @@ Theme::~Theme()
{
}
-QDataVis::ColorTheme Theme::colorTheme()
+QDataVis::Theme Theme::theme()
{
- return m_colorTheme;
+ return m_theme;
}
-void Theme::useColorTheme(QDataVis::ColorTheme colorTheme)
+void Theme::useTheme(QDataVis::Theme theme)
{
- m_colorTheme = colorTheme;
- switch (colorTheme) {
+ m_theme = theme;
+ switch (theme) {
case QDataVis::ThemeQt: {
m_baseColor = QColor(QRgb(0x80c342));
//m_heightColor = QColor(QRgb(0x));
@@ -227,7 +227,7 @@ void Theme::useColorTheme(QDataVis::ColorTheme colorTheme)
void Theme::setFromTheme(Theme &theme)
{
- m_colorTheme = theme.m_colorTheme;
+ m_theme = theme.m_theme;
m_baseColor = theme.m_baseColor;
m_heightColor = theme.m_heightColor;
m_depthColor = theme.m_depthColor;