diff --git a/kwin/effects/dimscreen/dimscreen.cpp b/kwin/effects/dimscreen/dimscreen.cpp index 0bae6b66..d3730c66 100644 --- a/kwin/effects/dimscreen/dimscreen.cpp +++ b/kwin/effects/dimscreen/dimscreen.cpp @@ -28,7 +28,10 @@ DimScreenEffect::DimScreenEffect() , deactivateAnimation(false) { reconfigure(ReconfigureAll); - connect(effects, SIGNAL(windowActivated(KWin::EffectWindow*)), this, SLOT(slotWindowActivated(KWin::EffectWindow*))); + connect( + effects, SIGNAL(windowActivated(KWin::EffectWindow*)), + this, SLOT(slotWindowActivated(KWin::EffectWindow*)) + ); } DimScreenEffect::~DimScreenEffect() @@ -83,7 +86,9 @@ void DimScreenEffect::paintWindow(EffectWindow *w, int mask, QRegion region, Win void DimScreenEffect::slotWindowActivated(EffectWindow *w) { - if (!w) return; + if (!w) { + return; + } QStringList check; check << "kdesu kdesu"; check << "kdesudo kdesudo"; diff --git a/kwin/effects/dimscreen/dimscreen.h b/kwin/effects/dimscreen/dimscreen.h index 556aafc1..33e9e69a 100644 --- a/kwin/effects/dimscreen/dimscreen.h +++ b/kwin/effects/dimscreen/dimscreen.h @@ -35,11 +35,11 @@ public: DimScreenEffect(); ~DimScreenEffect(); - virtual void reconfigure(ReconfigureFlags); - virtual void prePaintScreen(ScreenPrePaintData& data, int time); - virtual void postPaintScreen(); - virtual void paintWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data); - virtual bool isActive() const; + void reconfigure(ReconfigureFlags) final; + void prePaintScreen(ScreenPrePaintData& data, int time) final; + void postPaintScreen(); + void paintWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data) final; + bool isActive() const final; public Q_SLOTS: void slotWindowActivated(KWin::EffectWindow *w);