From cca11405b031f3c0f6ac398a5c1bf6bfea75d421 Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Tue, 14 Aug 2018 12:51:56 +0300 Subject: [PATCH] [effects/slidingpopups] Use new connect syntax Test Plan: Compiles and the Application Launcher is still sliding. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D14823 --- effects/slidingpopups/slidingpopups.cpp | 6 +++--- effects/slidingpopups/slidingpopups.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/effects/slidingpopups/slidingpopups.cpp b/effects/slidingpopups/slidingpopups.cpp index f63a070388..1b23ec2d16 100644 --- a/effects/slidingpopups/slidingpopups.cpp +++ b/effects/slidingpopups/slidingpopups.cpp @@ -42,10 +42,10 @@ SlidingPopupsEffect::SlidingPopupsEffect() mSlideLength = QFontMetrics(qApp->font()).height() * 8; mAtom = effects->announceSupportProperty("_KDE_SLIDE", this); - connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*))); + connect(effects, &EffectsHandler::windowAdded, this, &SlidingPopupsEffect::slotWindowAdded); connect(effects, &EffectsHandler::windowClosed, this, &SlidingPopupsEffect::slideOut); - connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*))); - connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long))); + connect(effects, &EffectsHandler::windowDeleted, this, &SlidingPopupsEffect::slotWindowDeleted); + connect(effects, &EffectsHandler::propertyNotify, this, &SlidingPopupsEffect::slotPropertyNotify); connect(effects, &EffectsHandler::windowShown, this, &SlidingPopupsEffect::slideIn); connect(effects, &EffectsHandler::windowHidden, this, &SlidingPopupsEffect::slideOut); connect(effects, &EffectsHandler::xcbConnectionChanged, this, diff --git a/effects/slidingpopups/slidingpopups.h b/effects/slidingpopups/slidingpopups.h index 38cd5fde62..026e012cf6 100644 --- a/effects/slidingpopups/slidingpopups.h +++ b/effects/slidingpopups/slidingpopups.h @@ -54,10 +54,10 @@ public: int slideInDuration() const; int slideOutDuration() const; -public Q_SLOTS: - void slotWindowAdded(KWin::EffectWindow *c); - void slotWindowDeleted(KWin::EffectWindow *w); - void slotPropertyNotify(KWin::EffectWindow *w, long a); +private Q_SLOTS: + void slotWindowAdded(EffectWindow *w); + void slotWindowDeleted(EffectWindow *w); + void slotPropertyNotify(EffectWindow *w, long a); void slotWaylandSlideOnShowChanged(EffectWindow* w); void slideIn(EffectWindow *w);