summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/theme/q3dtheme_p.h
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-11-28 06:40:59 +0200
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-11-28 08:10:29 +0200
commit5fde532408da5b6b3ddef13aff5e07f32015e7d9 (patch)
tree8a243126c37a92be3ca14734adc5074a9642c129 /src/datavisualization/theme/q3dtheme_p.h
parent964897e316c0fd524cba3a3cbb3c32fad53f965a (diff)
Visual properties moved to theme
Task-number: QTRD-2632 Change-Id: I91eaa8fa26e232de24fe89ef0c8a2fc53f31fb8c Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/theme/q3dtheme_p.h')
-rw-r--r--src/datavisualization/theme/q3dtheme_p.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/datavisualization/theme/q3dtheme_p.h b/src/datavisualization/theme/q3dtheme_p.h
index ca3108c8..08efa61e 100644
--- a/src/datavisualization/theme/q3dtheme_p.h
+++ b/src/datavisualization/theme/q3dtheme_p.h
@@ -32,9 +32,6 @@
#include "datavisualizationglobal_p.h"
#include "q3dtheme.h"
-class QColor;
-class QLinearGradient;
-
QT_DATAVISUALIZATION_BEGIN_NAMESPACE
struct Q3DThemeDirtyBitField {
@@ -55,6 +52,10 @@ struct Q3DThemeDirtyBitField {
bool highlightLightStrengthDirty : 1;
bool labelBorderEnabledDirty : 1;
bool colorStyleDirty : 1;
+ bool fontDirty : 1;
+ bool backgroundEnabledDirty : 1;
+ bool gridEnabledDirty : 1;
+ bool labelBackgroundEnabledDirty : 1;
Q3DThemeDirtyBitField()
: baseColorDirty(false),
@@ -73,7 +74,11 @@ struct Q3DThemeDirtyBitField {
ambientLightStrengthDirty(false),
highlightLightStrengthDirty(false),
labelBorderEnabledDirty(false),
- colorStyleDirty(false)
+ colorStyleDirty(false),
+ fontDirty(false),
+ backgroundEnabledDirty(false),
+ gridEnabledDirty(false),
+ labelBackgroundEnabledDirty(false)
{
}
};
@@ -86,14 +91,14 @@ public:
QDataVis::Theme theme_id = QDataVis::ThemeUserDefined);
virtual ~Q3DThemePrivate();
+ void resetDirtyBits();
+
public:
QDataVis::Theme m_themeId;
Q3DThemeDirtyBitField m_dirtyBits;
QColor m_baseColor;
- QColor m_heightColor;
- QColor m_depthColor;
QColor m_backgroundColor;
QColor m_windowColor;
QColor m_textColor;
@@ -110,6 +115,10 @@ public:
float m_highlightLightStrength;
bool m_labelBorders;
QDataVis::ColorStyle m_colorStyle;
+ QFont m_font;
+ bool m_backgoundEnabled;
+ bool m_gridEnabled;
+ bool m_labelBackground;
protected:
Q3DTheme *q_ptr;