UI/Qt: Add a tooltip for the close tab button

This commit is contained in:
Shehab Ahmed 2026-05-10 15:55:58 +03:00 committed by Tim Flynn
parent 9bda97a11b
commit f6a009e757

View file

@ -593,6 +593,8 @@ void BrowserWindow::create_close_button_for_tab(Tab* tab)
m_tabs_container->set_tab_icon(index, tab->favicon());
auto* button = new TabBarButton(create_tvg_icon_with_theme_colors("close", palette()));
button->setToolTip("Close Tab");
auto position = audio_button_position_for_tab(index) == QTabBar::LeftSide ? QTabBar::RightSide : QTabBar::LeftSide;
connect(button, &QPushButton::clicked, this, [this, tab]() {