diff options
Diffstat (limited to 'src/panels/navigationtoolbar.hpp')
-rw-r--r-- | src/panels/navigationtoolbar.hpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/panels/navigationtoolbar.hpp b/src/panels/navigationtoolbar.hpp new file mode 100644 index 00000000..eaf5b145 --- /dev/null +++ b/src/panels/navigationtoolbar.hpp @@ -0,0 +1,36 @@ +/* ============================================================ + * The rekonq project + * ============================================================ + * SPDX-License-Identifier: GPL-3.0-only + * Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net> + * ============================================================ */ + +#pragma once + +#include "rekonq.hpp" +#include "urlbar/urlbar.hpp" +#include <QToolBar> + +class RekonqView; +class NavigationToolBar : public QToolBar { + Q_OBJECT + +public: + explicit NavigationToolBar(QWidget *parent = nullptr); + ~NavigationToolBar() override = default; + +signals: + void loadUrl(rekonq::DefaultUrl url, rekonq::OpenType type = rekonq::CurrentTab); + +public slots: + void setCurrentView(RekonqView *view); + +private: + RekonqView *m_view; + UrlBar *urlBar; + + QMetaObject::Connection urlChanged_conn; + QMetaObject::Connection loadStarted_conn; + QMetaObject::Connection loadProgress_conn; + QMetaObject::Connection loadFinished_conn; +}; |