DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dlineedit_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 DLINEEDIT_P_H
6
#define DLINEEDIT_P_H
7
8
#include <DLineEdit>
9
#include <DAlertControl>
10
11
#include <DObjectPrivate>
12
#include <QPointer>
13
#include <DFloatingWidget>
14
#include <DSizeMode>
15
16
DWIDGET_BEGIN_NAMESPACE
17
18
class
DToolTip;
19
class
DLineEditPrivate
:
public
DTK_CORE_NAMESPACE::DObjectPrivate
20
{
21
Q_DECLARE_PUBLIC(
DLineEdit
)
22
23
public
:
24
DLineEditPrivate
(
DLineEdit
*q);
25
void
updateTooltipPos();
26
27
void
init();
28
29
static
inline
QSize defaultIconSize()
30
{
31
return
DSizeModeHelper::element(QSize(18, 18), QSize(24, 24));
32
}
33
static
inline
int
defaultButtonWidth()
34
{
35
return
DSizeModeHelper::element(28, 40);
36
}
37
38
DAlertControl
*control{
nullptr
};
39
40
QWidget *leftWidget;
41
QWidget *rightWidget;
42
43
QLineEdit *lineEdit;
44
QHBoxLayout *hLayout;
45
46
bool
bEnableCut =
true
;
47
bool
bEnableCopy =
true
;
48
bool
bSpeechToText =
true
;
49
bool
bTextToSpeech =
true
;
50
bool
bTextToTranslate =
true
;
51
};
52
53
DWIDGET_END_NAMESPACE
54
55
#endif
// DLINEEDIT_P_H
56
Dtk::Widget::DAlertControl
此类是提供了应用程序的警告对话框, 符合Deepin风格
Definition
dalertcontrol.h:17
Dtk::Widget::DLineEditPrivate
Definition
dlineedit_p.h:20
Dtk::Widget::DLineEdit
DLineEdit一个聚合 QLineEdit 的输入框.
Definition
dlineedit.h:20
src
widgets
private
dlineedit_p.h
文档生成时间:2024-11-15-05:51 +00
Doxygen Version
1.9.8
制作者:deepin doc doc go SIG
文档使用CC-BY-4.0共享