DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dloadingindicator_p.h
1// SPDX-FileCopyrightText: 2015 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DLOADINGINDICATOR_P
6#define DLOADINGINDICATOR_P
7
8#include <DObjectPrivate>
9
10#include <dloadingindicator.h>
11
12DWIDGET_BEGIN_NAMESPACE
13
14class DLoadingIndicatorPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
15{
17
18 void init();
19 void setLoadingItem(QGraphicsItem *item);
20
21 QVariantAnimation rotateAni;
22 bool loading;
23 QWidget *widgetSource = NULL;
24 bool smooth = false;
25 DLoadingIndicator::RotationDirection direction = DLoadingIndicator::Clockwise;
26
27 D_DECLARE_PUBLIC(DLoadingIndicator)
28};
29
30DWIDGET_END_NAMESPACE
31
32#endif // DLOADINGINDICATOR_P
33
Definition dloadingindicator_p.h:15
The DLoadingIndicator class provides a widget that showing loading animation.
Definition dloadingindicator.h:26
RotationDirection
The RotationDirection enum contains the possible rotation directions of the DLoadingIndicator widget.
Definition dloadingindicator.h:44