SVN commit 514662 by aumuell: somewhat nicer tooltips M +11 -4 mediabrowser.cpp --- trunk/extragear/multimedia/amarok/src/mediabrowser.cpp #514661:514662 @@ -262,7 +262,7 @@ connect( button, SIGNAL( clicked() ), m_searchEdit, SLOT( clear() ) ); QToolTip::add( button, i18n( "Clear filter" ) ); - QToolTip::add( m_searchEdit, i18n( "Enter space-separated terms to filter collection" ) ); //TODO text is wrong + QToolTip::add( m_searchEdit, i18n( "Enter space-separated terms to filter" ) ); } // connect( m_timer, SIGNAL( timeout() ), SLOT( slotSetFilter() ) ); @@ -918,17 +918,20 @@ case MediaItem::TRACK: { const MetaBundle *b = i->bundle(); - text = ""; if( b ) { if( b->track() ) - text = QString( "%1 - %2 (%3)
" ) + text = QString( "%1 - %2 (%3)" ) .arg( b->track() ) .arg( b->title() ) .arg( b->prettyLength() ); if( !b->genre().isEmpty() ) + { + if( !text.isEmpty() ) + text += "
"; text += QString( "Genre: %1" ) .arg( b->genre() ); + } } } break; @@ -939,7 +942,11 @@ { text += p->description; if( !p->webpage.isEmpty() ) - text += i18n( "
Webpage: %1
" ).arg( p->webpage ); + { + if( !text.isEmpty() ) + text += "
"; + text += i18n( "Webpage: %1" ).arg( p->webpage ); + } } } break;