mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2024-08-15 00:43:43 +00:00
34 lines
630 B
C
34 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
|