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
16DWIDGET_BEGIN_NAMESPACE
17
18class DToolTip;
19class DLineEditPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
20{
21 Q_DECLARE_PUBLIC(DLineEdit)
22
23public:
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
53DWIDGET_END_NAMESPACE
54
55#endif // DLINEEDIT_P_H
56
此类是提供了应用程序的警告对话框, 符合Deepin风格
Definition dalertcontrol.h:17
Definition dlineedit_p.h:20
DLineEdit一个聚合 QLineEdit 的输入框.
Definition dlineedit.h:20