Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qhelpsearchquerywidget.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QHELPSEARCHQUERYWIDGET_H
6#define QHELPSEARCHQUERYWIDGET_H
7
8#include <QtHelp/qhelp_global.h>
9#include <QtHelp/qhelpsearchengine.h>
10
11#include <QtWidgets/qwidget.h>
12
14
15class QFocusEvent;
17
18class QHELP_EXPORT QHelpSearchQueryWidget : public QWidget
19{
20 Q_OBJECT
21
22public:
23 explicit QHelpSearchQueryWidget(QWidget *parent = nullptr);
24 ~QHelpSearchQueryWidget() override;
25
26 void expandExtendedSearch();
27 void collapseExtendedSearch();
28
29#if QT_DEPRECATED_SINCE(5, 9)
30 QT_DEPRECATED QList<QHelpSearchQuery> query() const;
31 QT_DEPRECATED void setQuery(const QList<QHelpSearchQuery> &queryList);
32#endif
33
34 QString searchInput() const;
35 void setSearchInput(const QString &searchInput);
36
37 bool isCompactMode() const;
38
39public Q_SLOTS:
40 void setCompactMode(bool on);
41
42Q_SIGNALS:
43 void search();
44
45private:
46 void focusInEvent(QFocusEvent *focusEvent) override;
47 void changeEvent(QEvent *event) override;
48
49private:
50 QHelpSearchQueryWidgetPrivate *d;
51};
52
53QT_END_NAMESPACE
54
55#endif // QHELPSEARCHQUERYWIDGET_H
The QHelpSearchEngineCore class provides access to index and search documentation.
QHelpSearchResultWidget * resultWidget
QHelpSearchQueryWidget * queryWidget
QHelpSearchEngineCore m_searchEngine
The QHelpSearchQueryWidget class provides a simple line edit or an advanced widget to enable the user...
Combined button and popup list for selecting options.