[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:
parent
f26845cf8f
commit
52793c5e5b
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue