qt5base-lts/examples/network/googlesuggest/searchbox.h

29 lines
448 B
C
Raw Normal View History

// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef SEARCHBOX_H
#define SEARCHBOX_H
//! [1]
#include <QLineEdit>
class GSuggestCompletion;
class SearchBox: public QLineEdit
{
Q_OBJECT
public:
explicit SearchBox(QWidget *parent = nullptr);
protected slots:
void doSearch();
private:
GSuggestCompletion *completer = nullptr;
//! [1]
};
#endif // SEARCHBOX_H