DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dsearchedit_p.h
1// SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DSEARCHEDIT_P_H
6#define DSEARCHEDIT_P_H
7
8#include "dlineedit_p.h"
9#include <DSearchEdit>
10
11#include <QLabel>
12#include <QPropertyAnimation>
13
14QT_BEGIN_NAMESPACE
15class QAudioInput;
16QT_END_NAMESPACE
17
18DWIDGET_BEGIN_NAMESPACE
19
20class VoiceDevice;
21class DIconButton;
23{
24public:
27
28 void init();
29
30 void _q_toEditMode(bool focus);
31 void _q_onVoiceActionTrigger(bool checked);
32 void _q_clearFocus();
33
34public:
35 QAction *action;
36 QString placeHolder;
37 QString placeholderText;
38
39 QWidget *iconWidget;
40 QLabel *label;
41 QPropertyAnimation *animation;
42
43#ifdef ENABLE_AI
44 QAction *voiceAction = nullptr;
45 QAudioInput *voiceInput = nullptr;
46 VoiceDevice *voiceIODevice = nullptr;
47#endif
48
49protected:
50 Q_DECLARE_PUBLIC(DSearchEdit)
51};
52
53DWIDGET_END_NAMESPACE
54
55#endif // DSEARCHEDIT_P_H
Definition dlineedit_p.h:20
Definition dsearchedit_p.h:23
DSearchEdit 类提供了专门用来进行搜索的输入框控件.
Definition dsearchedit.h:14