From 52793c5e5b7439c98106dd7ebc02707547025cca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 26 Jan 2015 10:27:39 +0100 Subject: [PATCH] [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. --- kcmkwin/kwindecoration/kcm.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kcmkwin/kwindecoration/kcm.cpp b/kcmkwin/kwindecoration/kcm.cpp index 3892ba1915..c6b83b6c7e 100644 --- a/kcmkwin/kwindecoration/kcm.cpp +++ b/kcmkwin/kwindecoration/kcm.cpp @@ -396,7 +396,9 @@ bool ConfigurationModule::eventFilter(QObject *watched, QEvent *e) void ConfigurationModule::updateColors() { +#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)) m_ui->view->setClearColor(m_ui->view->palette().color(QPalette::Window)); +#endif m_ui->view->rootContext()->setContextProperty("highlightColor", QPalette().color(QPalette::Highlight)); }