From a20ad449718a1c127b50e5340833567663ad0b23 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Wed, 30 Jan 2013 20:06:12 +0100 Subject: [PATCH] Mooaar debug output in the source tooltip --- src/sourcetree/items/SourceItem.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/sourcetree/items/SourceItem.cpp b/src/sourcetree/items/SourceItem.cpp index a49424bbb..470cbea73 100644 --- a/src/sourcetree/items/SourceItem.cpp +++ b/src/sourcetree/items/SourceItem.cpp @@ -151,14 +151,21 @@ SourceItem::tooltip() const QString t; + // This is kind of debug output for now. t.append( "
" );
+
+    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() )
     {
-        QString line( p->sipPlugin()->serviceName() + p->sipPlugin()->friendlyName() + ": " + p->id() );
-
-        t.append( line + "\n" );
-        t.append("\n");
+        QString line( p->sipPlugin()->serviceName() + p->sipPlugin()->friendlyName() + ": " + p->id() + " " + p->friendlyName() );
+        t.append( line + "\n\n" );
     }
     t.append( "
" );