mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Add some useful data to the debugging tooltip
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
#include "playlist/RecentlyPlayedModel.h"
|
#include "playlist/RecentlyPlayedModel.h"
|
||||||
#include "playlist/PlaylistLargeItemDelegate.h"
|
#include "playlist/PlaylistLargeItemDelegate.h"
|
||||||
#include "sip/PeerInfo.h"
|
#include "sip/PeerInfo.h"
|
||||||
|
#include "sip/SipPlugin.h"
|
||||||
#include "utils/ImageRegistry.h"
|
#include "utils/ImageRegistry.h"
|
||||||
#include "utils/TomahawkUtilsGui.h"
|
#include "utils/TomahawkUtilsGui.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
@@ -151,10 +152,15 @@ 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>" );
|
||||||
foreach( Tomahawk::peerinfo_ptr p, m_source->peerInfos() )
|
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() )
|
if ( !m_source->currentTrack().isNull() )
|
||||||
t.append( m_source->textStatus() );
|
t.append( m_source->textStatus() );
|
||||||
|
Reference in New Issue
Block a user