mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-21 08:21:54 +02:00
* Fixed default avatar generation on non-OS X.
This commit is contained in:
parent
31ab460559
commit
9240e8d476
@ -52,9 +52,7 @@ Source::Source( int id, const QString& nodeId )
|
||||
{
|
||||
Q_D( Source );
|
||||
d->scrubFriendlyName = qApp->arguments().contains( "--demo" );
|
||||
|
||||
if ( id == 0 )
|
||||
d->isLocal = true;
|
||||
d->isLocal = ( id == 0 );
|
||||
|
||||
d->currentTrackTimer.setSingleShot( true );
|
||||
connect( &d->currentTrackTimer, SIGNAL( timeout() ), this, SLOT( trackTimerFired() ) );
|
||||
@ -160,8 +158,7 @@ Source::dbCollection() const
|
||||
}
|
||||
}
|
||||
|
||||
collection_ptr tmp;
|
||||
return tmp;
|
||||
return collection_ptr();
|
||||
}
|
||||
|
||||
|
||||
@ -327,7 +324,7 @@ Source::avatar( TomahawkUtils::ImageMode style, const QSize& size, bool defaultA
|
||||
#ifdef Q_OS_MAC
|
||||
const QRect pxRect = px.rect();
|
||||
#else
|
||||
const QRect pxRect = pxRect.adjusted( 0, 2, 0, 0 );
|
||||
const QRect pxRect = px.rect().adjusted( 0, 2, 0, 0 );
|
||||
#endif
|
||||
p.drawText( pxRect, friendlyName().left( 1 ).toUpper(), QTextOption( Qt::AlignCenter ) );
|
||||
return px;
|
||||
|
Loading…
x
Reference in New Issue
Block a user