[kcmkwin/deco] Fix build for Qt < 5.4

QQuickWidget::setClearColor is new in Qt 5.4. Sorry about the unintended
breakage of building with Qt 5.3.
This commit is contained in:
Martin Gräßlin 2015-01-26 10:27:39 +01:00
parent f26845cf8f
commit 52793c5e5b

View file

@ -396,7 +396,9 @@ bool ConfigurationModule::eventFilter(QObject *watched, QEvent *e)
void ConfigurationModule::updateColors() void ConfigurationModule::updateColors()
{ {
#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0))
m_ui->view->setClearColor(m_ui->view->palette().color(QPalette::Window)); m_ui->view->setClearColor(m_ui->view->palette().color(QPalette::Window));
#endif
m_ui->view->rootContext()->setContextProperty("highlightColor", QPalette().color(QPalette::Highlight)); m_ui->view->rootContext()->setContextProperty("highlightColor", QPalette().color(QPalette::Highlight));
} }