mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
Show tooltips in the sidebar only in Tabs and IconsOnly modes
This commit is contained in:
parent
709d339866
commit
2dd2b615ef
@ -706,7 +706,10 @@ void FancyTabWidget::MakeTabBar(QTabBar::Shape shape, bool text, bool icons,
|
|||||||
else if (text)
|
else if (text)
|
||||||
tab_id = bar->addTab(label);
|
tab_id = bar->addTab(label);
|
||||||
|
|
||||||
bar->setTabToolTip(tab_id, item.tab_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_);
|
||||||
}
|
}
|
||||||
|
|
||||||
bar->setCurrentIndex(stack_->currentIndex());
|
bar->setCurrentIndex(stack_->currentIndex());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user