DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dtickeffect_p.h
1// SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DTICKEFFECTPRIVATE_H
6#define DTICKEFFECTPRIVATE_H
7
8#include <dtickeffect.h>
9#include <DObjectPrivate>
10#include <QHBoxLayout>
11#include <QVariantAnimation>
12
13DWIDGET_BEGIN_NAMESPACE
14
15class DTickEffectPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
16{
17public:
18 explicit DTickEffectPrivate(DTickEffect *qq);
20
21 void init();
22 void initDirection();
23
24public:
25 DTickEffect::Direction direction;
26 int duration;
27 int fixPixel;
28 QVariantAnimation *runAnimation;
29 QWidget *content;
30
31 D_DECLARE_PUBLIC(DTickEffect)
32};
33
34DWIDGET_END_NAMESPACE
35
36#endif // DTICKEFFECTPRIVATE_H
Definition dtickeffect_p.h:16
这个类提供了跑马灯效果,可以让控件的内容滚动起来.
Definition dtickeffect.h:17