diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-11-28 13:58:02 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-11-28 14:02:07 +0200 |
commit | 5c4592ea5bb3a4c98a5fe1846c8b3082bd33e678 (patch) | |
tree | 0f3e4094c0443c7a93821a9f87dcdbc4393277ac /examples/bars/graphmodifier.cpp | |
parent | a7e8a3279547dbea4b5343f44f3b7563c0212f1e (diff) |
Theme sync
Task-number: QTRD-2538
Change-Id: I12dfb562dc59ae1df3b5127f0f675a3796ba3f00
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples/bars/graphmodifier.cpp')
-rw-r--r-- | examples/bars/graphmodifier.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/bars/graphmodifier.cpp b/examples/bars/graphmodifier.cpp index a27782c5..6a35b1b1 100644 --- a/examples/bars/graphmodifier.cpp +++ b/examples/bars/graphmodifier.cpp @@ -176,6 +176,10 @@ void GraphModifier::changePresetCamera() void GraphModifier::changeTheme(int theme) { m_graph->setTheme(new Q3DTheme(QDataVis::Theme(theme))); + emit backgroundEnabledChanged(m_graph->theme()->isBackgroundEnabled()); + emit gridEnabledChanged(m_graph->theme()->isGridEnabled()); + emit fontChanged(m_graph->theme()->font()); + emit fontSizeChanged(m_graph->theme()->font().pointSize()); } void GraphModifier::changeLabelBackground() @@ -195,7 +199,6 @@ void GraphModifier::changeSelectionMode(int selectionMode) void GraphModifier::changeFont(const QFont &font) { QFont newFont = font; - newFont.setPointSize(m_fontSize); m_graph->theme()->setFont(newFont); } |