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
10
class
QPropertyAnimation;
11
class
QAbstractScrollArea;
12
class
DBounceAnimationPrivate
;
13
class
DBounceAnimation
:
public
QObject,
public
DTK_CORE_NAMESPACE::DObject
14
{
15
Q_OBJECT
16
public
:
17
explicit
DBounceAnimation
(QObject *parent =
nullptr
);
18
19
void
setAnimationTarget(QAbstractScrollArea *w);
20
void
setAniMationEnable(
bool
enable);
21
22
protected
:
23
bool
eventFilter(QObject *o, QEvent *e)
override
;
24
void
bounceBack(Qt::Orientation orientation);
25
26
private
:
27
D_DECLARE_PRIVATE(
DBounceAnimation
)
28
29
};
30
31
#endif
// DBOUNCEANIMATION_H
DBounceAnimationPrivate
Definition
dbounceanimation_p.h:11
DBounceAnimation
Definition
dbounceanimation.h:14
include
widgets
dbounceanimation.h
文档生成时间:2024-11-15-05:51 +00
Doxygen Version
1.9.8
制作者:deepin doc doc go SIG
文档使用CC-BY-4.0共享