Show just the artist and title in the system tray tooltip on Windows since it doesn't support HTML

This commit is contained in:
David Sansome 2010-12-11 17:23:05 +00:00
parent 7a0540ab1c
commit c6829feb82
1 changed files with 7 additions and 1 deletions

View File

@ -132,6 +132,12 @@ void QtSystemTrayIcon::SetVisible(bool visible) {
}
void QtSystemTrayIcon::SetNowPlaying(const Song& song, const QString& image_path) {
#ifdef Q_WS_WIN
// Windows doesn't support HTML in tooltips, so just show something basic
tray_->setToolTip(song.PrettyTitleWithArtist());
return;
#endif
int columns = image_path == NULL ? 1 : 2;
QString clone = pattern_;
@ -166,4 +172,4 @@ void QtSystemTrayIcon::SetNowPlaying(const Song& song, const QString& image_path
void QtSystemTrayIcon::ClearNowPlaying() {
tray_->setToolTip(QCoreApplication::applicationName());
}
}