DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dlistview_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 DLISTVIEW_P_H
6#define DLISTVIEW_P_H
7
8#include <DListView>
9
10#include <DObjectPrivate>
11
12DWIDGET_BEGIN_NAMESPACE
13
14class DBoxWidget;
15class DListViewPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
16{
19
20 void init();
21
22 void onOrientationChanged();
23
24 DBoxWidget *headerLayout = nullptr;
25 DBoxWidget *footerLayout = nullptr;
26
27 QList<QWidget*> headerList;
28 QList<QWidget*> footerList;
29
30#if(QT_VERSION < 0x050500)
31 int left = 0, top = 0, right = 0, bottom = 0; // viewport margin
32#endif
33
34 D_DECLARE_PUBLIC(DListView)
35};
36
37DWIDGET_END_NAMESPACE
38
39#endif // DLISTVIEW_P_H
40
DBoxWidget提供了一个自适应子控件大小的Widget
Definition dboxwidget.h:19
Definition dlistview_p.h:16
DListView 一个用于展示一列数据的控件.
Definition dlistview.h:35