Ladybird/Qt: Add tooltips to the find-in-page widget

This commit is contained in:
Timothy Flynn 2024-05-30 13:33:00 -04:00 committed by Tim Flynn
parent 903078e4d1
commit b5d80013ea
Notes: sideshowbarker 2024-07-17 06:39:26 +09:00

View file

@ -34,6 +34,7 @@ FindInPageWidget::FindInPageWidget(Tab* tab, WebContentView* content_view)
m_previous_button = new QPushButton(this);
m_previous_button->setFixedWidth(30);
m_previous_button->setIcon(create_tvg_icon_with_theme_colors("up", palette()));
m_previous_button->setToolTip("Find Previous Match");
connect(m_previous_button, &QPushButton::clicked, this, [this] {
m_content_view->find_in_page_previous_match();
});
@ -41,6 +42,7 @@ FindInPageWidget::FindInPageWidget(Tab* tab, WebContentView* content_view)
m_next_button = new QPushButton(this);
m_next_button->setFixedWidth(30);
m_next_button->setIcon(create_tvg_icon_with_theme_colors("down", palette()));
m_next_button->setToolTip("Find Next Match");
connect(m_next_button, &QPushButton::clicked, this, [this] {
m_content_view->find_in_page_next_match();
});
@ -48,6 +50,7 @@ FindInPageWidget::FindInPageWidget(Tab* tab, WebContentView* content_view)
m_exit_button = new QPushButton(this);
m_exit_button->setFixedWidth(30);
m_exit_button->setIcon(create_tvg_icon_with_theme_colors("close", palette()));
m_exit_button->setToolTip("Close Search Bar");
connect(m_exit_button, &QPushButton::clicked, this, [this] {
setVisible(false);
});