DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dstackwidget_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 DSTACKWIDGET_P_H
6#define DSTACKWIDGET_P_H
7
8#include <dstackwidget.h>
9
10#include <DObjectPrivate>
11
12class QStackedLayout;
13
14DWIDGET_BEGIN_NAMESPACE
15
16class DAbstractStackWidgetTransitionPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
17{
20
21 QVariantAnimation *animation;
23
24 void init();
25
26 D_DECLARE_PUBLIC(DAbstractStackWidgetTransition)
27};
28
29class DStackWidgetPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
30{
33
34 int currentIndex = 0;
35 QWidget *currentWidget = nullptr;
36 QList<QWidget*> widgetList = {};
37 QList<QWidget*> trashWidgetList = {};
38 DAbstractStackWidgetTransition *transition = nullptr;
39
40 void init();
41 void setCurrentIndex(int index);
42
43 D_DECLARE_PUBLIC(DStackWidget)
44};
45
46DWIDGET_END_NAMESPACE
47
48#endif // DSTACKWIDGET_P
49
Definition dstackwidget_p.h:30
一个可定制切换动画的容器控件.
Definition dstackwidget.h:66