chore: adjusted the project directory structure

This commit is contained in:
Gary Wang
2020-11-05 14:12:58 +08:00
parent 1066fa45ea
commit 8c152dc862
29 changed files with 213 additions and 213 deletions

23
app/opacityhelper.h Normal file
View File

@ -0,0 +1,23 @@
#ifndef OPACITYHELPER_H
#define OPACITYHELPER_H
#include <QWidget>
QT_BEGIN_NAMESPACE
class QGraphicsOpacityEffect;
class QPropertyAnimation;
QT_END_NAMESPACE
class OpacityHelper : QObject
{
public:
OpacityHelper(QWidget * parent);
void setOpacity(qreal opacity, bool animated = true);
protected:
QGraphicsOpacityEffect * m_opacityFx;
QPropertyAnimation * m_opacityAnimation;
};
#endif // OPACITYHELPER_H