diff options
Diffstat (limited to 'src/urlbar/completer.hpp')
-rw-r--r-- | src/urlbar/completer.hpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/urlbar/completer.hpp b/src/urlbar/completer.hpp new file mode 100644 index 00000000..11c0f62b --- /dev/null +++ b/src/urlbar/completer.hpp @@ -0,0 +1,33 @@ +/* ============================================================ + * The rekonq project + * ============================================================ + * SPDX-License-Identifier: BSD-3-Clause + * Copyright (C) 2016 The Qt Company Ltd. + * SPDX-License-Identifier: GPL-3.0-only + * Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net> + * ============================================================ */ + +#pragma once + +#include <QObject> + +class UrlBar; +class QLineEdit; +class QTreeWidget; +class UrlSuggester : public QObject { + Q_OBJECT + +public: + explicit UrlSuggester(UrlBar *parent = nullptr); + ~UrlSuggester() override; + + bool eventFilter(QObject *obj, QEvent *ev) override; + +public slots: + void showCompletions(const QString &text); + void doneCompletion(); + +private: + QLineEdit *m_editor; + QTreeWidget *m_popup; +}; |