DtkWidget
5.6.0.2
DTK Widget module
src
widgets
private
dcombobox_p.h
1
// SPDX-FileCopyrightText: 2021 - 2022 UnionTech Software Technology Co., Ltd.
2
//
3
// SPDX-License-Identifier: LGPL-3.0-or-later
4
5
#ifndef DCOMBOBOX_P_H
6
#define DCOMBOBOX_P_H
7
8
#include "dcombobox.h"
9
#include <DObjectPrivate>
10
11
DWIDGET_BEGIN_NAMESPACE
12
13
class
DComboBoxPrivate
:
public
DCORE_NAMESPACE::DObjectPrivate
14
{
15
Q_DECLARE_PUBLIC(
DComboBox
)
16
public
:
17
explicit
DComboBoxPrivate
(
DComboBox
* q);
18
19
void
init();
20
21
// 重写 QComboBoxPrivate类的popupGeometry
22
QRect
popupGeometry();
23
24
// 重写 QComboBoxPrivate类的computeWidthHint
25
int
computeWidthHint()
const
;
26
27
// 最大显示项数
28
static
const
int
MaxVisibleItems = 16;
29
};
30
31
DWIDGET_END_NAMESPACE
32
33
#endif
// DCOMBOBOX_P_H
34
Dtk::Widget::DComboBoxPrivate
Definition:
dcombobox_p.h:14
Dtk::Widget::DComboBox
DComboBox 重写QComboBox, 提供一个下拉列表供用户选择
Definition:
dcombobox.h:16
QRect
制作者
1.9.3