mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-02-22 19:05:05 +01:00
* Style cleanups.
This commit is contained in:
parent
084a3cd2f3
commit
b03eb6defb
@ -50,6 +50,7 @@ Album::~Album()
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
inline QString
|
||||
albumCacheKey( const Tomahawk::artist_ptr& artist, const QString& albumName )
|
||||
{
|
||||
|
@ -77,7 +77,7 @@ Source::Source( int id, const QString& nodeId )
|
||||
|
||||
Source::~Source()
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO << friendlyName();
|
||||
tDebug() << Q_FUNC_INFO << friendlyName();
|
||||
}
|
||||
|
||||
|
||||
@ -87,6 +87,7 @@ Source::setControlConnection( ControlConnection* cc )
|
||||
m_cc = cc;
|
||||
}
|
||||
|
||||
|
||||
const QSet<peerinfo_ptr>
|
||||
Source::peerInfos() const
|
||||
{
|
||||
|
@ -53,7 +53,7 @@ ControlConnection::ControlConnection( Servent* parent )
|
||||
|
||||
ControlConnection::~ControlConnection()
|
||||
{
|
||||
qDebug() << "DTOR controlconnection";
|
||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << id() << name();
|
||||
|
||||
if ( !m_source.isNull() )
|
||||
m_source->setOffline();
|
||||
@ -258,7 +258,6 @@ ControlConnection::handleMsg( msg_ptr msg )
|
||||
}
|
||||
|
||||
|
||||
|
||||
void
|
||||
ControlConnection::onPingTimer()
|
||||
{
|
||||
@ -284,6 +283,7 @@ void
|
||||
ControlConnection::removePeerInfo( const peerinfo_ptr& peerInfo )
|
||||
{
|
||||
peerInfoDebug( peerInfo ) << "Remove peer from control connection:" << name();
|
||||
|
||||
Q_ASSERT( peerInfo->controlConnection() == this );
|
||||
// TODO: find out why this happens
|
||||
// Q_ASSERT( m_peerInfos.contains( peerInfo ) );
|
||||
|
@ -79,6 +79,7 @@ SearchWidget::SearchWidget( const QString& search, QWidget* parent )
|
||||
SearchWidget::~SearchWidget()
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
|
||||
delete ui;
|
||||
}
|
||||
|
||||
@ -143,7 +144,7 @@ SearchWidget::onResultsFound( const QList<Tomahawk::result_ptr>& results )
|
||||
void
|
||||
SearchWidget::onAlbumsFound( const QList<Tomahawk::album_ptr>& albums )
|
||||
{
|
||||
foreach ( const Tomahawk::album_ptr& album, albums)
|
||||
foreach ( const Tomahawk::album_ptr& album, albums )
|
||||
{
|
||||
int distance = TomahawkUtils::levenshtein( m_search, album->name() );
|
||||
int maxlen = qMax( m_search.length(), album->name().length() );
|
||||
@ -153,7 +154,7 @@ SearchWidget::onAlbumsFound( const QList<Tomahawk::album_ptr>& albums )
|
||||
continue;
|
||||
|
||||
m_albums.insert( score, album );
|
||||
tDebug() << Q_FUNC_INFO << "found album:" << album->name() << "score:" << score;
|
||||
// tDebug() << Q_FUNC_INFO << "found album:" << album->name() << "score:" << score;
|
||||
}
|
||||
|
||||
updateAlbums();
|
||||
@ -173,7 +174,7 @@ SearchWidget::onArtistsFound( const QList<Tomahawk::artist_ptr>& artists )
|
||||
continue;
|
||||
|
||||
m_artists.insert( score, artist );
|
||||
tDebug() << Q_FUNC_INFO << "found artist:" << artist->name() << "score:" << score;
|
||||
// tDebug() << Q_FUNC_INFO << "found artist:" << artist->name() << "score:" << score;
|
||||
}
|
||||
|
||||
updateArtists();
|
||||
|
Loading…
x
Reference in New Issue
Block a user