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)
{
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";

View file

@ -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);