DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
ddrawergroup.h
1// SPDX-FileCopyrightText: 2019 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DDRAWERGROUP_H
6#define DDRAWERGROUP_H
7
8#include <dtkwidget_global.h>
9#include <DObject>
10
11DWIDGET_BEGIN_NAMESPACE
12
13class DDrawer;
14class DDrawerGroupPrivate;
15class LIBDTKWIDGETSHARED_EXPORT DDrawerGroup : public QObject, public DCORE_NAMESPACE::DObject
16{
17 Q_OBJECT
18 D_DECLARE_PRIVATE(DDrawerGroup)
19
20public:
21 explicit DDrawerGroup(QObject *parent = 0);
22
23 QList<DDrawer *> expands() const;
24 DDrawer * checkedExpand() const;
25 DDrawer * expand(int id) const;
26 void addExpand(DDrawer *expand, int id = -1);
27 void setId(DDrawer *expand, int id);
28 void removeExpand(DDrawer *expand);
29 int checkedId() const;
30 int id(DDrawer *expand) const;
31
32private:
33 void onExpandChanged(bool v);
34};
35
36DWIDGET_END_NAMESPACE
37
38#endif // DDRAWERGROUP_H
封装了一组 DDrawer 控件(当然也可以是其子类), 并保证同一时间只有一个 DDrawer 处于展开状态.
Definition ddrawergroup.h:16
A beautifully developed control.
Definition ddrawer.h:13