summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/engine/drawer.cpp
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-10-02 11:42:39 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-10-02 12:04:20 +0300
commit03a6fa33bce2459d12e906ab3c01a37d66a74942 (patch)
tree9d78c94581fdae71bf90753c800705ce19753ec6 /src/datavisualization/engine/drawer.cpp
parente4ae069de4b69856771a804926f23d3644599d99 (diff)
Refactored LabelTransparency and ShadowQuality
Task-number: QTRD-2362 Change-Id: I4c9cc84d44a2fcf881e8b6062413aa3dbe2e5890 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'src/datavisualization/engine/drawer.cpp')
-rw-r--r--src/datavisualization/engine/drawer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/datavisualization/engine/drawer.cpp b/src/datavisualization/engine/drawer.cpp
index 941feb00..57fa5eb4 100644
--- a/src/datavisualization/engine/drawer.cpp
+++ b/src/datavisualization/engine/drawer.cpp
@@ -41,10 +41,10 @@ StaticLibInitializer staticLibInitializer;
QT_DATAVISUALIZATION_BEGIN_NAMESPACE
-Drawer::Drawer(const Theme &theme, const QFont &font, QDataVis::LabelTransparency transparency)
+Drawer::Drawer(const Theme &theme, const QFont &font, QDataVis::LabelStyle style)
: m_theme(theme),
m_font(font),
- m_transparency(transparency),
+ m_style(style),
m_textureHelper(0)
{
}
@@ -84,9 +84,9 @@ QFont Drawer::font() const
return m_font;
}
-void Drawer::setTransparency(QDataVis::LabelTransparency transparency)
+void Drawer::setStyle(QDataVis::LabelStyle style)
{
- m_transparency = transparency;
+ m_style = style;
emit drawerChanged();
}
@@ -354,7 +354,7 @@ void Drawer::generateLabelItem(LabelItem &item, const QString &text, int widestL
text,
m_theme.m_textBackgroundColor,
m_theme.m_textColor,
- m_transparency,
+ m_style,
m_theme.m_labelBorders,
widestLabel);