diff options
author | Andreas Kling <kling@serenityos.org> | 2022-09-25 12:02:05 +0200 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-12-25 07:58:58 -0700 |
commit | 2a021084e54d9b4ebf2e80138380fe3808a1e780 (patch) | |
tree | d382df924ae6eddbb4fe42a4a76b6333406a154f /Ladybird/Tab.cpp | |
parent | eecee7369fb4566cdb057ffb764a5fd63f00a0fb (diff) | |
download | serenity-2a021084e54d9b4ebf2e80138380fe3808a1e780.zip |
Ladybird: Rename WebView to SimpleWebView
This will allow us to share code with LibWebView from SerenityOS.
(This would otherwise not work, since its "WebView" namespace collides
with our "WebView" class.)
Also, we should eventually move towards a more sophisticated
multi-process WebView like OOPWV.
Diffstat (limited to 'Ladybird/Tab.cpp')
-rw-r--r-- | Ladybird/Tab.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Ladybird/Tab.cpp b/Ladybird/Tab.cpp index 1f6fedb44d..1df3aab2d9 100644 --- a/Ladybird/Tab.cpp +++ b/Ladybird/Tab.cpp @@ -25,7 +25,7 @@ Tab::Tab(BrowserWindow* window) m_layout->setSpacing(0); m_layout->setContentsMargins(0, 0, 0, 0); - m_view = new WebView; + m_view = new SimpleWebView; m_toolbar = new QToolBar; m_location_edit = new QLineEdit; @@ -61,24 +61,24 @@ Tab::Tab(BrowserWindow* window) m_toolbar->addAction(m_home_action); m_toolbar->addWidget(m_location_edit); - QObject::connect(m_view, &WebView::link_hovered, [this](QString const& title) { + QObject::connect(m_view, &SimpleWebView::link_hovered, [this](QString const& title) { m_hover_label->setText(title); update_hover_label(); m_hover_label->show(); }); - QObject::connect(m_view, &WebView::link_unhovered, [this] { + QObject::connect(m_view, &SimpleWebView::link_unhovered, [this] { m_hover_label->hide(); }); - QObject::connect(m_view, &WebView::load_started, [this](const URL& url) { + QObject::connect(m_view, &SimpleWebView::load_started, [this](const URL& url) { m_location_edit->setText(url.to_string().characters()); m_history.push(url, m_title.toUtf8().data()); m_back_action->setEnabled(m_history.can_go_back()); m_forward_action->setEnabled(m_history.can_go_forward()); }); QObject::connect(m_location_edit, &QLineEdit::returnPressed, this, &Tab::location_edit_return_pressed); - QObject::connect(m_view, &WebView::title_changed, this, &Tab::page_title_changed); - QObject::connect(m_view, &WebView::favicon_changed, this, &Tab::page_favicon_changed); + QObject::connect(m_view, &SimpleWebView::title_changed, this, &Tab::page_title_changed); + QObject::connect(m_view, &SimpleWebView::favicon_changed, this, &Tab::page_favicon_changed); QObject::connect(m_back_action, &QAction::triggered, this, &Tab::back); QObject::connect(m_forward_action, &QAction::triggered, this, &Tab::forward); |