1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 20:34:39 +01:00

Add a tooltip to the favorite widget

This commit is contained in:
Arnaud Bienner 2013-06-29 16:12:53 +02:00
parent c1d37896a4
commit cee18eebb2

View File

@ -233,6 +233,9 @@ void PlaylistTabBar::InsertTab(int id, int index, const QString& text, bool favo
setTabData(index, id);
setTabToolTip(index, text);
FavoriteWidget* widget = new FavoriteWidget(id, favorite);
widget->setToolTip(tr(
"Click here to favorite this playlist so it will be saved and remain accessible "
"through the \"Playlists\" panel on the left side bar"));
connect(widget, SIGNAL(FavoriteStateChanged(int, bool)),
SIGNAL(PlaylistFavorited(int, bool)));
setTabButton(index, QTabBar::LeftSide, widget);