aerothemeplasma/KWin/smod_kwin_theme/breeze/kstyle/animations/breezeenabledata.h

33 lines
630 B
C++

/*
* SPDX-FileCopyrightText: 2014 Hugo Pereira Da Costa <hugo.pereira@free.fr>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef breezeenable_data_h
#define breezeenable_data_h
#include "breezewidgetstatedata.h"
namespace Breeze
{
//* Enable data
class EnableData : public WidgetStateData
{
Q_OBJECT
public:
//* constructor
EnableData(QObject *parent, QWidget *target, int duration, bool state = true)
: WidgetStateData(parent, target, duration, state)
{
target->installEventFilter(this);
}
//* event filter
bool eventFilter(QObject *, QEvent *) override;
};
}
#endif