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;
16class QWidgetAction;
17QT_END_NAMESPACE
18
19DWIDGET_BEGIN_NAMESPACE
20
21class VoiceDevice;
22class DIconButton;
24{
25public:
28
29 void init();
30
31 void _q_toEditMode(bool focus);
32 void _q_onVoiceActionTrigger(bool checked);
33 void _q_clearFocus();
34
35public:
36 QWidgetAction *action;
37 QString placeHolder;
38 QString placeholderText;
39
40 QWidget *iconWidget;
41 QLabel *label;
42 QPropertyAnimation *animation;
43
44#ifdef ENABLE_AI
45 QAction *voiceAction = nullptr;
46 QAudioInput *voiceInput = nullptr;
47 VoiceDevice *voiceIODevice = nullptr;
48#endif
49
50protected:
51 Q_DECLARE_PUBLIC(DSearchEdit)
52};
53
54DWIDGET_END_NAMESPACE
55
56#endif // DSEARCHEDIT_P_H
Definition dlineedit_p.h:20
Definition dsearchedit_p.h:24
DSearchEdit 类提供了专门用来进行搜索的输入框控件.
Definition dsearchedit.h:14