mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-18 11:51:44 +02:00
cleanup
This commit is contained in:
@@ -84,7 +84,7 @@ SpotifyPlaylistUpdater::init()
|
|||||||
|
|
||||||
connect( playlist().data(), SIGNAL( tracksInserted( QList<Tomahawk::plentry_ptr>, int ) ), this, SLOT( tomahawkTracksInserted( QList<Tomahawk::plentry_ptr>, int ) ) );
|
connect( playlist().data(), SIGNAL( tracksInserted( QList<Tomahawk::plentry_ptr>, int ) ), this, SLOT( tomahawkTracksInserted( QList<Tomahawk::plentry_ptr>, int ) ) );
|
||||||
connect( playlist().data(), SIGNAL( tracksRemoved( QList<Tomahawk::query_ptr> ) ), this, SLOT( tomahawkTracksRemoved( QList<Tomahawk::query_ptr> ) ) );
|
connect( playlist().data(), SIGNAL( tracksRemoved( QList<Tomahawk::query_ptr> ) ), this, SLOT( tomahawkTracksRemoved( QList<Tomahawk::query_ptr> ) ) );
|
||||||
connect( playlist().data(), SIGNAL( renamed(const QString&, const QString& ) ), this, SLOT( tomahawkPlaylistRenamed( const QString&, const QString& ) ) );
|
connect( playlist().data(), SIGNAL( renamed( QString, QString ) ), this, SLOT( tomahawkPlaylistRenamed( QString, QString ) ) );
|
||||||
// TODO reorders in a playlist
|
// TODO reorders in a playlist
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -61,7 +61,7 @@ protected:
|
|||||||
private slots:
|
private slots:
|
||||||
void tomahawkTracksInserted( const QList<Tomahawk::plentry_ptr>& ,int );
|
void tomahawkTracksInserted( const QList<Tomahawk::plentry_ptr>& ,int );
|
||||||
void tomahawkTracksRemoved( const QList<Tomahawk::query_ptr>& );
|
void tomahawkTracksRemoved( const QList<Tomahawk::query_ptr>& );
|
||||||
void tomahawkPlaylistRenamed( const QString&, const QString&);
|
void tomahawkPlaylistRenamed( const QString&, const QString& );
|
||||||
// SpotifyResolver message handlers, all take msgtype, msg as argument
|
// SpotifyResolver message handlers, all take msgtype, msg as argument
|
||||||
void onTracksInsertedReturn( const QString& msgType, const QVariantMap& msg );
|
void onTracksInsertedReturn( const QString& msgType, const QVariantMap& msg );
|
||||||
void onTracksRemovedReturn( const QString& msgType, const QVariantMap& msg );
|
void onTracksRemovedReturn( const QString& msgType, const QVariantMap& msg );
|
||||||
|
@@ -251,14 +251,14 @@ Playlist::rename( const QString& title )
|
|||||||
void
|
void
|
||||||
Playlist::setTitle( const QString& title )
|
Playlist::setTitle( const QString& title )
|
||||||
{
|
{
|
||||||
if( title == m_title )
|
if ( title == m_title )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const QString oldTitle = m_title;
|
const QString oldTitle = m_title;
|
||||||
const QString newTitle = title;
|
|
||||||
m_title = title;
|
m_title = title;
|
||||||
|
|
||||||
emit changed();
|
emit changed();
|
||||||
emit renamed( newTitle, oldTitle );
|
emit renamed( m_title, oldTitle );
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -202,7 +202,7 @@ signals:
|
|||||||
|
|
||||||
/// renamed etc.
|
/// renamed etc.
|
||||||
void changed();
|
void changed();
|
||||||
void renamed( const QString&, const QString& );
|
void renamed( const QString& newTitle, const QString& oldTitle );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* delete command is scheduled but not completed. Do not call remove() again once this
|
* delete command is scheduled but not completed. Do not call remove() again once this
|
||||||
|
Reference in New Issue
Block a user