blob: 11c0f62b551501b680a26f8a3401c41f0726049f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
};
|