DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dbounceanimation.h
1// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4#ifndef DBOUNCEANIMATION_H
5#define DBOUNCEANIMATION_H
6
7#include <DObject>
8#include <QObject>
9
10class QPropertyAnimation;
11class QAbstractScrollArea;
13class DBounceAnimation : public QObject, public DTK_CORE_NAMESPACE::DObject
14{
15 Q_OBJECT
16public:
17 explicit DBounceAnimation(QObject *parent = nullptr);
18
19 void setAnimationTarget(QAbstractScrollArea *w);
20 void setAniMationEnable(bool enable);
21
22protected:
23 bool eventFilter(QObject *o, QEvent *e) override;
24 void bounceBack(Qt::Orientation orientation);
25
26private:
27 D_DECLARE_PRIVATE(DBounceAnimation)
28
29};
30
31#endif // DBOUNCEANIMATION_H
Definition dbounceanimation_p.h:11
Definition dbounceanimation.h:14