mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Style cleanup.
This commit is contained in:
@@ -72,16 +72,13 @@ void
|
|||||||
Scrobbler::trackStarted( const Tomahawk::result_ptr& track )
|
Scrobbler::trackStarted( const Tomahawk::result_ptr& track )
|
||||||
{
|
{
|
||||||
Q_ASSERT( QThread::currentThread() == thread() );
|
Q_ASSERT( QThread::currentThread() == thread() );
|
||||||
// qDebug() << Q_FUNC_INFO;
|
|
||||||
|
|
||||||
if( m_reachedScrobblePoint )
|
if ( m_reachedScrobblePoint )
|
||||||
{
|
{
|
||||||
m_reachedScrobblePoint = false;
|
m_reachedScrobblePoint = false;
|
||||||
scrobble();
|
scrobble();
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariantMap playInfo;
|
|
||||||
|
|
||||||
Tomahawk::InfoSystem::InfoStringHash trackInfo;
|
Tomahawk::InfoSystem::InfoStringHash trackInfo;
|
||||||
trackInfo["title"] = track->track();
|
trackInfo["title"] = track->track();
|
||||||
trackInfo["artist"] = track->artist()->name();
|
trackInfo["artist"] = track->artist()->name();
|
||||||
@@ -89,6 +86,7 @@ Scrobbler::trackStarted( const Tomahawk::result_ptr& track )
|
|||||||
trackInfo["duration"] = QString::number( track->duration() );
|
trackInfo["duration"] = QString::number( track->duration() );
|
||||||
trackInfo["albumpos"] = QString::number( track->albumpos() );
|
trackInfo["albumpos"] = QString::number( track->albumpos() );
|
||||||
|
|
||||||
|
QVariantMap playInfo;
|
||||||
playInfo["trackinfo"] = QVariant::fromValue< Tomahawk::InfoSystem::InfoStringHash >( trackInfo );
|
playInfo["trackinfo"] = QVariant::fromValue< Tomahawk::InfoSystem::InfoStringHash >( trackInfo );
|
||||||
playInfo["private"] = TomahawkSettings::instance()->privateListeningMode();
|
playInfo["private"] = TomahawkSettings::instance()->privateListeningMode();
|
||||||
|
|
||||||
@@ -126,7 +124,7 @@ Scrobbler::trackStopped()
|
|||||||
{
|
{
|
||||||
Q_ASSERT( QThread::currentThread() == thread() );
|
Q_ASSERT( QThread::currentThread() == thread() );
|
||||||
|
|
||||||
if( m_reachedScrobblePoint )
|
if ( m_reachedScrobblePoint )
|
||||||
{
|
{
|
||||||
m_reachedScrobblePoint = false;
|
m_reachedScrobblePoint = false;
|
||||||
scrobble();
|
scrobble();
|
||||||
|
@@ -312,6 +312,7 @@ QtScriptResolver::init()
|
|||||||
m_ready = true;
|
m_ready = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
QtScriptResolver::start()
|
QtScriptResolver::start()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user