aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/welcome/welcomeplugin.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2014-12-17 17:04:43 +0100
committerEike Ziller <eike.ziller@theqtcompany.com>2014-12-18 15:37:43 +0100
commit196e0d76e638699efc20dc43f0827d8f0da173ba (patch)
tree9b74b0295aaf9caeb9f4fa3dda4fde8d97ea3949 /src/plugins/welcome/welcomeplugin.cpp
parent4cf7742fed145d7a2f582c496683e6367f6d27e0 (diff)
Welcome: Fix compilation with QQuickWidget
Use the background color property in the QML code instead of relying on QQuickView::setColor Change-Id: I556515a42d9483f88500fa5a5c56ea21f48fa685 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Diffstat (limited to 'src/plugins/welcome/welcomeplugin.cpp')
-rw-r--r--src/plugins/welcome/welcomeplugin.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp
index 4e20e7440c..2d26a2393a 100644
--- a/src/plugins/welcome/welcomeplugin.cpp
+++ b/src/plugins/welcome/welcomeplugin.cpp
@@ -132,7 +132,7 @@ WelcomeMode::WelcomeMode()
layout->setSpacing(0);
m_welcomePage = new QuickContainer();
- onThemeChanged(); //initialize background color
+ onThemeChanged(); // initialize background color and theme properties
m_welcomePage->setResizeMode(QuickContainer::SizeRootObjectToView);
m_welcomePage->setObjectName(QLatin1String("WelcomePage"));
@@ -161,7 +161,6 @@ WelcomeMode::WelcomeMode()
void WelcomeMode::onThemeChanged()
{
- m_welcomePage->setColor(creatorTheme()->color(Theme::BackgroundColorNormal));
const QVariantHash creatorTheme = Utils::creatorTheme()->values();
QVariantHash::const_iterator it;
for (it = creatorTheme.constBegin(); it != creatorTheme.constEnd(); ++it)