Commit 19b83275 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

The non deprecated enableBlurBehind requires KWINDOWSYSTEM >= 5.82.0

Deprecated: Since 5.82, use enableBlurBehind(QWindow) overload.
parent f5103cd5
......@@ -31,6 +31,7 @@
#include <KNotifyConfigWidget>
#include <kio_version.h>
#include <kwindowsystem_version.h>
// Konsole
#include "BookmarkHandler.h"
......@@ -885,7 +886,11 @@ void MainWindow::setBlur(bool blur)
_blurEnabled = blur;
if (!_pluggedController->isKonsolePart()) {
#if KWINDOWSYSTEM_VERSION < QT_VERSION_CHECK(5,82,0)
KWindowEffects::enableBlurBehind(winId(), blur);
#else
KWindowEffects::enableBlurBehind(windowHandle(), blur);
#endif
}
}
......
......@@ -17,6 +17,8 @@
#include <KWindowSystem>
#include <KWindowEffects>
#include <kwindowsystem_version.h>
// see below notes
//#include "../../../WindowSystemInfo.h"
......@@ -59,7 +61,11 @@ demo_konsolepart::demo_konsolepart()
Qt::DirectConnection,
Q_RETURN_ARG(bool, blurEnabled));
qWarning()<<"blur enabled: "<<blurEnabled;
#if KWINDOWSYSTEM_VERSION < QT_VERSION_CHECK(5,82,0)
KWindowEffects::enableBlurBehind(winId(), blurEnabled);
#else
KWindowEffects::enableBlurBehind(windowHandle(), blurEnabled);
#endif
}
demo_konsolepart::~demo_konsolepart()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment