kwin: format and indent

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-06-02 18:29:03 +03:00
parent 63b529c71f
commit ae2f1383e4
2 changed files with 12 additions and 7 deletions

View file

@ -28,7 +28,10 @@ DimScreenEffect::DimScreenEffect()
, deactivateAnimation(false) , deactivateAnimation(false)
{ {
reconfigure(ReconfigureAll); 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() DimScreenEffect::~DimScreenEffect()
@ -83,7 +86,9 @@ void DimScreenEffect::paintWindow(EffectWindow *w, int mask, QRegion region, Win
void DimScreenEffect::slotWindowActivated(EffectWindow *w) void DimScreenEffect::slotWindowActivated(EffectWindow *w)
{ {
if (!w) return; if (!w) {
return;
}
QStringList check; QStringList check;
check << "kdesu kdesu"; check << "kdesu kdesu";
check << "kdesudo kdesudo"; check << "kdesudo kdesudo";

View file

@ -35,11 +35,11 @@ public:
DimScreenEffect(); DimScreenEffect();
~DimScreenEffect(); ~DimScreenEffect();
virtual void reconfigure(ReconfigureFlags); void reconfigure(ReconfigureFlags) final;
virtual void prePaintScreen(ScreenPrePaintData& data, int time); void prePaintScreen(ScreenPrePaintData& data, int time) final;
virtual void postPaintScreen(); void postPaintScreen();
virtual void paintWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data); void paintWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data) final;
virtual bool isActive() const; bool isActive() const final;
public Q_SLOTS: public Q_SLOTS:
void slotWindowActivated(KWin::EffectWindow *w); void slotWindowActivated(KWin::EffectWindow *w);