mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
Hide debug tooltips unless --verbose.
This commit is contained in:
@@ -298,7 +298,7 @@ Servent::registerPeer( const Tomahawk::peerinfo_ptr& peerInfo )
|
|||||||
{
|
{
|
||||||
if ( peerInfo->hasControlConnection() )
|
if ( peerInfo->hasControlConnection() )
|
||||||
{
|
{
|
||||||
peerInfoDebug( peerInfo ) << "already had control connection, not doin nuffin: " << peerInfo->controlConnection()->name();
|
peerInfoDebug( peerInfo ) << "already had control connection, doing nothing: " << peerInfo->controlConnection()->name();
|
||||||
tLog() << "existing control connection has following peers:";
|
tLog() << "existing control connection has following peers:";
|
||||||
foreach ( const peerinfo_ptr& otherPeerInfo, peerInfo->controlConnection()->peerInfos() )
|
foreach ( const peerinfo_ptr& otherPeerInfo, peerInfo->controlConnection()->peerInfos() )
|
||||||
{
|
{
|
||||||
|
@@ -39,6 +39,7 @@
|
|||||||
#include "utils/ImageRegistry.h"
|
#include "utils/ImageRegistry.h"
|
||||||
#include "utils/TomahawkUtilsGui.h"
|
#include "utils/TomahawkUtilsGui.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
#include "TomahawkApp.h"
|
||||||
|
|
||||||
/// SourceItem
|
/// SourceItem
|
||||||
|
|
||||||
@@ -156,23 +157,26 @@ SourceItem::tooltip() const
|
|||||||
|
|
||||||
QString t;
|
QString t;
|
||||||
|
|
||||||
|
bool showDebugInfo = APP->arguments().contains( "--verbose" );
|
||||||
// This is kind of debug output for now.
|
if ( showDebugInfo )
|
||||||
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() )
|
|
||||||
{
|
{
|
||||||
QString line( p->sipPlugin()->serviceName() + p->sipPlugin()->friendlyName() + ": " + p->id() + " " + p->friendlyName() );
|
// This is kind of debug output for now.
|
||||||
t.append( line + "\n\n" );
|
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() )
|
||||||
|
{
|
||||||
|
QString line( p->sipPlugin()->serviceName() + p->sipPlugin()->friendlyName() + ": " + p->id() + " " + p->friendlyName() );
|
||||||
|
t.append( line + "\n\n" );
|
||||||
|
}
|
||||||
|
t.append( "</PRE>" );
|
||||||
}
|
}
|
||||||
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