// 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 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