DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dflowlayout_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 DFLOWLAYOUT_P_H
6#define DFLOWLAYOUT_P_H
7
8#include <dflowlayout.h>
9
10#include <DObjectPrivate>
11
12class QLayoutItem;
13
14DWIDGET_BEGIN_NAMESPACE
15
16class DFlowLayoutPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
17{
19
20 QSize doLayout(const QRect &rect, bool testOnly) const;
21
22 QList<QLayoutItem*> itemList;
23 int horizontalSpacing = 0;
24 int verticalSpacing = 0;
25 mutable QSize sizeHint;
26 DFlowLayout::Flow flow = DFlowLayout::Flow::LeftToRight;
27
28 D_DECLARE_PUBLIC(DFlowLayout)
29};
30
31DWIDGET_END_NAMESPACE
32
33#endif // DFLOWLAYOUT_P_H
34
Definition dflowlayout_p.h:17
DFlowLayout 类提供了一个简便的流布局.
Definition dflowlayout.h:20