Add a tooltip to the favorite widget
This commit is contained in:
parent
c1d37896a4
commit
cee18eebb2
@ -233,6 +233,9 @@ void PlaylistTabBar::InsertTab(int id, int index, const QString& text, bool favo
|
|||||||
setTabData(index, id);
|
setTabData(index, id);
|
||||||
setTabToolTip(index, text);
|
setTabToolTip(index, text);
|
||||||
FavoriteWidget* widget = new FavoriteWidget(id, favorite);
|
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)),
|
connect(widget, SIGNAL(FavoriteStateChanged(int, bool)),
|
||||||
SIGNAL(PlaylistFavorited(int, bool)));
|
SIGNAL(PlaylistFavorited(int, bool)));
|
||||||
setTabButton(index, QTabBar::LeftSide, widget);
|
setTabButton(index, QTabBar::LeftSide, widget);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user