summaryrefslogtreecommitdiffstats
path: root/tests/surfacetest/graphmodifier.cpp
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 /tests/surfacetest/graphmodifier.cpp
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 'tests/surfacetest/graphmodifier.cpp')
-rw-r--r--tests/surfacetest/graphmodifier.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/surfacetest/graphmodifier.cpp b/tests/surfacetest/graphmodifier.cpp
index 1ee4f56b..38ad4971 100644
--- a/tests/surfacetest/graphmodifier.cpp
+++ b/tests/surfacetest/graphmodifier.cpp
@@ -317,17 +317,12 @@ void GraphModifier::changeFont(const QFont &font)
{
QFont newFont = font;
newFont.setPointSizeF(m_fontSize);
- m_graph->setFont(newFont);
+ m_graph->theme()->setFont(newFont);
}
void GraphModifier::changeStyle()
{
- static int style = QDataVis::LabelStyleFromTheme;
-
- m_graph->setLabelStyle((QDataVis::LabelStyle)style);
-
- if (++style > QDataVis::LabelStyleTransparent)
- style = QDataVis::LabelStyleOpaque;
+ m_graph->theme()->setLabelBackgroundEnabled(!m_graph->theme()->isLabelBackgroundEnabled());
}
void GraphModifier::selectButtonClicked()