/* * This file is part of smolbote. It's copyrighted by the contributors recorded * in the version control history of the file, available from its original * location: https://neueland.iserlohn-fortress.net/smolbote.hg * * SPDX-License-Identifier: GPL-3.0 */ #ifndef ADDRESSBAR_H #define ADDRESSBAR_H #include #include class WebView; class UrlLineEdit; class QProgressBar; class AddressBar : public QWidget { Q_OBJECT public: AddressBar(const QHash &config, QWidget *parent = nullptr); ~AddressBar() override; signals: void complete(const QString &term, std::function callback); public slots: void connectWebView(WebView *view); private: UrlLineEdit *urlBar; QProgressBar *progressBar; QMetaObject::Connection urlChangedConnection, loadUrlConnection; QMetaObject::Connection progressBarConnection; }; #endif // ADDRESSBAR_H