Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
7ba68fde
Commit
7ba68fde
authored
Feb 16, 2022
by
Vlad Zahorodnii
Browse files
effects/slidingpopups: Avoid using QApplication
CCBUG: 450359
parent
9d33190d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/effects/slidingpopups/slidingpopups.cpp
View file @
7ba68fde
...
...
@@ -11,7 +11,7 @@
#include
"slidingpopups.h"
#include
"slidingpopupsconfig.h"
#include
<QApplication>
#include
<Q
Gui
Application>
#include
<QFontMetrics>
#include
<QTimer>
#include
<QWindow>
...
...
@@ -36,7 +36,7 @@ SlidingPopupsEffect::SlidingPopupsEffect()
KWaylandServer
::
Display
*
display
=
effects
->
waylandDisplay
();
if
(
display
)
{
if
(
!
s_slideManagerRemoveTimer
)
{
s_slideManagerRemoveTimer
=
new
QTimer
(
qApp
);
s_slideManagerRemoveTimer
=
new
QTimer
(
QCoreApplication
::
instance
()
);
s_slideManagerRemoveTimer
->
setSingleShot
(
true
);
s_slideManagerRemoveTimer
->
callOnTimeout
([]()
{
s_slideManager
->
remove
();
...
...
@@ -49,7 +49,7 @@ SlidingPopupsEffect::SlidingPopupsEffect()
}
}
m_slideLength
=
QFontMetrics
(
qApp
->
font
()).
height
()
*
8
;
m_slideLength
=
QFontMetrics
(
QGuiApplication
::
font
()).
height
()
*
8
;
m_atom
=
effects
->
announceSupportProperty
(
"_KDE_SLIDE"
,
this
);
connect
(
effects
,
&
EffectsHandler
::
windowAdded
,
this
,
&
SlidingPopupsEffect
::
slotWindowAdded
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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