1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-19 13:01:32 +01:00

Show tooltips in the sidebar only in Tabs and IconsOnly modes

This commit is contained in:
Andrea Decorte 2011-05-03 18:06:17 +00:00
parent 709d339866
commit 2dd2b615ef

View File

@ -706,6 +706,9 @@ void FancyTabWidget::MakeTabBar(QTabBar::Shape shape, bool text, bool icons,
else if (text)
tab_id = bar->addTab(label);
// Adds tooltips only in Tabs mode or IconOnlyTabs mode
// TODO in tab mode, show only if not elided, complicated since this doesn't inherit from QTabWidget
if (shape == QTabBar::RoundedNorth && ((!text && icons) || (text && !icons)))
bar->setTabToolTip(tab_id, item.tab_label_);
}