mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-24 01:39:42 +01:00
Add some useful data to the debugging tooltip
This commit is contained in:
parent
330eb81a0a
commit
b9ae0eec8e
@ -35,6 +35,7 @@
|
||||
#include "playlist/RecentlyPlayedModel.h"
|
||||
#include "playlist/PlaylistLargeItemDelegate.h"
|
||||
#include "sip/PeerInfo.h"
|
||||
#include "sip/SipPlugin.h"
|
||||
#include "utils/ImageRegistry.h"
|
||||
#include "utils/TomahawkUtilsGui.h"
|
||||
#include "utils/Logger.h"
|
||||
@ -151,10 +152,15 @@ SourceItem::tooltip() const
|
||||
QString t;
|
||||
|
||||
// This is kind of debug output for now.
|
||||
t.append( "<PRE>" );
|
||||
foreach( Tomahawk::peerinfo_ptr p, m_source->peerInfos() )
|
||||
{
|
||||
t.append( p->id() + "<br>" );
|
||||
QString line( p->sipPlugin()->serviceName() + p->sipPlugin()->friendlyName() + ": " + p->id() );
|
||||
|
||||
t.append( line + "\n" );
|
||||
t.append("\n");
|
||||
}
|
||||
t.append( "</PRE>" );
|
||||
|
||||
if ( !m_source->currentTrack().isNull() )
|
||||
t.append( m_source->textStatus() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user