[effects/minimizeanimation] Use new connect syntax

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D13354
This commit is contained in:
Vlad Zagorodniy 2018-06-05 12:30:15 +03:00
parent 7d7112b633
commit 60c34b1413
2 changed files with 10 additions and 10 deletions

View file

@ -28,9 +28,9 @@ namespace KWin
MinimizeAnimationEffect::MinimizeAnimationEffect()
{
mActiveAnimations = 0;
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
connect(effects, SIGNAL(windowMinimized(KWin::EffectWindow*)), this, SLOT(slotWindowMinimized(KWin::EffectWindow*)));
connect(effects, SIGNAL(windowUnminimized(KWin::EffectWindow*)), this, SLOT(slotWindowUnminimized(KWin::EffectWindow*)));
connect(effects, &EffectsHandler::windowDeleted, this, &MinimizeAnimationEffect::windowDeleted);
connect(effects, &EffectsHandler::windowMinimized, this, &MinimizeAnimationEffect::windowMinimized);
connect(effects, &EffectsHandler::windowUnminimized, this, &MinimizeAnimationEffect::windowUnminimized);
}
bool MinimizeAnimationEffect::supported()
@ -116,12 +116,12 @@ void MinimizeAnimationEffect::postPaintScreen()
effects->postPaintScreen();
}
void MinimizeAnimationEffect::slotWindowDeleted(EffectWindow* w)
void MinimizeAnimationEffect::windowDeleted(EffectWindow *w)
{
delete mTimeLineWindows.take(w);
}
void MinimizeAnimationEffect::slotWindowMinimized(EffectWindow* w)
void MinimizeAnimationEffect::windowMinimized(EffectWindow *w)
{
if (effects->activeFullScreenEffect())
return;
@ -134,7 +134,7 @@ void MinimizeAnimationEffect::slotWindowMinimized(EffectWindow* w)
}
}
void MinimizeAnimationEffect::slotWindowUnminimized(EffectWindow* w)
void MinimizeAnimationEffect::windowUnminimized(EffectWindow *w)
{
if (effects->activeFullScreenEffect())
return;

View file

@ -51,10 +51,10 @@ public:
static bool supported();
public Q_SLOTS:
void slotWindowDeleted(KWin::EffectWindow *w);
void slotWindowMinimized(KWin::EffectWindow *w);
void slotWindowUnminimized(KWin::EffectWindow *w);
private Q_SLOTS:
void windowDeleted(EffectWindow *w);
void windowMinimized(EffectWindow *w);
void windowUnminimized(EffectWindow *w);
private:
QHash< EffectWindow*, QTimeLine* > mTimeLineWindows;