DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dbuttonbox_p.h
1// SPDX-FileCopyrightText: 2019 - 2024 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DBUTTONBOX_P_H
6#define DBUTTONBOX_P_H
7
8#include <DButtonBox>
9#include <DStyleOption>
10
11#include <DObjectPrivate>
12
13QT_BEGIN_NAMESPACE
14class QBoxLayout;
15class QVariantAnimation;
16QT_END_NAMESPACE
17
18DWIDGET_BEGIN_NAMESPACE
19
20class DButtonBoxPrivate : public DCORE_NAMESPACE::DObjectPrivate
21{
22public:
24 void init();
25 DStyleOptionButtonBoxButton::ButtonPosition getButtonPosition(const DButtonBoxButton *button) const;
26
27 QButtonGroup *group;
28 QBoxLayout *layout;
29
30 int m_hoverId;
31 int m_checkedId;
32 int m_pressId;
33
34 QVariantAnimation *m_hoverAnimation;
35 QVariantAnimation *m_checkMoveAnimation;
36
37 D_DECLARE_PUBLIC(DButtonBox)
38};
39
40DWIDGET_END_NAMESPACE
41
42#endif // DBUTTONBOX_P_H
DButtonBoxButton类 提供了在 DButtonBox类 中使用的可修改样式的图标按钮.
Definition dbuttonbox.h:20
Definition dbuttonbox_p.h:21
DButtonBox 类似于 QButtonGroup 类.
Definition dbuttonbox.h:56