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
12
class
QStackedLayout;
13
14
DWIDGET_BEGIN_NAMESPACE
15
16
class
DAbstractStackWidgetTransitionPrivate
:
public
DTK_CORE_NAMESPACE::DObjectPrivate
17
{
18
explicit
DAbstractStackWidgetTransitionPrivate
(
DAbstractStackWidgetTransition
*qq);
19
~DAbstractStackWidgetTransitionPrivate
();
20
21
QVariantAnimation *animation;
22
DAbstractStackWidgetTransition::TransitionInfo
info;
23
24
void
init();
25
26
D_DECLARE_PUBLIC(
DAbstractStackWidgetTransition
)
27
};
28
29
class
DStackWidgetPrivate
:
public
DTK_CORE_NAMESPACE::DObjectPrivate
30
{
31
explicit
DStackWidgetPrivate
(
DStackWidget
*qq);
32
~DStackWidgetPrivate
();
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
46
DWIDGET_END_NAMESPACE
47
48
#endif
// DSTACKWIDGET_P
49
Dtk::Widget::DAbstractStackWidgetTransitionPrivate
Definition
dstackwidget_p.h:17
Dtk::Widget::DAbstractStackWidgetTransition
Definition
dstackwidget.h:19
Dtk::Widget::DStackWidgetPrivate
Definition
dstackwidget_p.h:30
Dtk::Widget::DStackWidget
一个可定制切换动画的容器控件.
Definition
dstackwidget.h:66
Dtk::Widget::DAbstractStackWidgetTransition::TransitionInfo
Definition
dstackwidget.h:26
src
widgets
private
dstackwidget_p.h
文档生成时间:2024-11-15-05:51 +00
Doxygen Version
1.9.8
制作者:deepin doc doc go SIG
文档使用CC-BY-4.0共享