Commit 60c34b14 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

[effects/minimizeanimation] Use new connect syntax

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D13354
parent 7d7112b6
......@@ -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;
......
......@@ -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;
......
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