2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2017 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#ifndef SEARCHBOX_H
|
|
|
|
#define SEARCHBOX_H
|
|
|
|
|
|
|
|
//! [1]
|
|
|
|
#include <QLineEdit>
|
|
|
|
|
|
|
|
class GSuggestCompletion;
|
|
|
|
|
|
|
|
class SearchBox: public QLineEdit
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-09-29 11:57:43 +00:00
|
|
|
explicit SearchBox(QWidget *parent = nullptr);
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void doSearch();
|
|
|
|
|
|
|
|
private:
|
2017-09-29 11:57:43 +00:00
|
|
|
GSuggestCompletion *completer = nullptr;
|
2011-04-27 10:05:43 +00:00
|
|
|
//! [1]
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // SEARCHBOX_H
|