Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
19b83275
Commit
19b83275
authored
Jul 02, 2021
by
Kurt Hindenburg
Browse files
The non deprecated enableBlurBehind requires KWINDOWSYSTEM >= 5.82.0
Deprecated: Since 5.82, use enableBlurBehind(QWindow) overload.
parent
f5103cd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/MainWindow.cpp
View file @
19b83275
...
...
@@ -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
}
}
...
...
src/tests/demo_konsolepart/src/demo_konsolepart.cpp
View file @
19b83275
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment