mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Mooaar debug output in the source tooltip
This commit is contained in:
@@ -151,14 +151,21 @@ SourceItem::tooltip() const
|
|||||||
|
|
||||||
QString t;
|
QString t;
|
||||||
|
|
||||||
|
|
||||||
// This is kind of debug output for now.
|
// This is kind of debug output for now.
|
||||||
t.append( "<PRE>" );
|
t.append( "<PRE>" );
|
||||||
|
|
||||||
|
QString narf("%1: %2\n");
|
||||||
|
t.append( narf.arg( "id" ).arg( m_source->id() ) );
|
||||||
|
t.append( narf.arg( "username" ).arg( m_source->nodeId() ) );
|
||||||
|
t.append( narf.arg( "friendlyname" ).arg( m_source->friendlyName() ) );
|
||||||
|
t.append( narf.arg( "dbfriendlyname" ).arg( m_source->dbFriendlyName() ) );
|
||||||
|
|
||||||
|
t.append("\n");
|
||||||
foreach( Tomahawk::peerinfo_ptr p, m_source->peerInfos() )
|
foreach( Tomahawk::peerinfo_ptr p, m_source->peerInfos() )
|
||||||
{
|
{
|
||||||
QString line( p->sipPlugin()->serviceName() + p->sipPlugin()->friendlyName() + ": " + p->id() );
|
QString line( p->sipPlugin()->serviceName() + p->sipPlugin()->friendlyName() + ": " + p->id() + " " + p->friendlyName() );
|
||||||
|
t.append( line + "\n\n" );
|
||||||
t.append( line + "\n" );
|
|
||||||
t.append("\n");
|
|
||||||
}
|
}
|
||||||
t.append( "</PRE>" );
|
t.append( "</PRE>" );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user