mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
Ladybird: Pass QIcon by reference in tab_favicon_changed
This commit is contained in:
parent
6e40e8316e
commit
0da5af0eff
Notes:
sideshowbarker
2024-07-17 09:49:33 +09:00
Author: https://github.com/cammo1123 Commit: https://github.com/SerenityOS/serenity/commit/0da5af0eff Pull-request: https://github.com/SerenityOS/serenity/pull/19064 Reviewed-by: https://github.com/AtkinsSJ
2 changed files with 2 additions and 2 deletions
|
@ -538,7 +538,7 @@ void BrowserWindow::tab_title_changed(int index, QString const& title)
|
||||||
setWindowTitle(QString("%1 - Ladybird").arg(title));
|
setWindowTitle(QString("%1 - Ladybird").arg(title));
|
||||||
}
|
}
|
||||||
|
|
||||||
void BrowserWindow::tab_favicon_changed(int index, QIcon icon)
|
void BrowserWindow::tab_favicon_changed(int index, QIcon const& icon)
|
||||||
{
|
{
|
||||||
m_tabs_container->setTabIcon(index, icon);
|
m_tabs_container->setTabIcon(index, icon);
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@ public:
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void tab_title_changed(int index, QString const&);
|
void tab_title_changed(int index, QString const&);
|
||||||
void tab_favicon_changed(int index, QIcon icon);
|
void tab_favicon_changed(int index, QIcon const& icon);
|
||||||
Tab& new_tab(QString const&, Web::HTML::ActivateTab);
|
Tab& new_tab(QString const&, Web::HTML::ActivateTab);
|
||||||
void activate_tab(int index);
|
void activate_tab(int index);
|
||||||
void close_tab(int index);
|
void close_tab(int index);
|
||||||
|
|
Loading…
Reference in a new issue