1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

* Style fixes.

This commit is contained in:
Christian Muehlhaeuser
2013-04-22 09:17:37 +02:00
parent 2c79831ef8
commit 18f44f4e47
6 changed files with 13 additions and 12 deletions

View File

@@ -188,7 +188,6 @@ public:
void setTitle( const QString& s );
// </IGNORE>
QList<plentry_ptr> entriesFromQueries( const QList<Tomahawk::query_ptr>& queries, bool clearFirst = false );
void addUpdater( PlaylistUpdaterInterface* updater );
@@ -249,7 +248,6 @@ public slots:
// entries should be <= entries(), with changed metadata.
void updateEntries( const QString& newrev, const QString& oldrev, const QList< plentry_ptr >& entries );
void reportCreated( const Tomahawk::playlist_ptr& self );
void reportDeleted( const Tomahawk::playlist_ptr& self );
@@ -263,6 +261,7 @@ public slots:
void resolve();
void setWeakSelf( QWeakPointer< Playlist > self );
protected:
// called from loadAllPlaylists DB cmd:
explicit Playlist( const source_ptr& src,
@@ -291,12 +290,12 @@ protected:
bool is_newest_rev,
const QMap< QString, Tomahawk::plentry_ptr >& addedmap );
private slots:
void onResultsChanged();
void onResolvingFinished();
void onDeleteResult( SourceTreePopupDialog* );
private:
Playlist();
void init();

View File

@@ -43,6 +43,7 @@ namespace Tomahawk
class DynamicPlaylist;
class Query;
class Result;
class Track;
class Source;
class DynamicControl;
class GeneratorInterface;
@@ -54,7 +55,11 @@ namespace Tomahawk
typedef QSharedPointer<PlaylistInterface> playlistinterface_ptr;
typedef QSharedPointer<DynamicPlaylist> dynplaylist_ptr;
typedef QSharedPointer<Query> query_ptr;
typedef QWeakPointer<Query> query_wptr;
typedef QSharedPointer<Result> result_ptr;
typedef QWeakPointer<Result> result_wptr;
typedef QSharedPointer<Track> track_ptr;
typedef QWeakPointer<Track> track_wptr;
typedef QSharedPointer<Source> source_ptr;
typedef QSharedPointer<Artist> artist_ptr;
typedef QWeakPointer<Artist> artist_wptr;

View File

@@ -661,9 +661,6 @@ TrackView::onCustomContextMenu( const QPoint& pos )
PlayableItem* item = proxyModel()->itemFromIndex( proxyModel()->mapToSource( index ) );
if ( item && !item->query().isNull() )
{
if ( item->query()->numResults() > 0 )
queries << item->query()->results().first()->toQuery();
else
queries << item->query();
}
}

View File

@@ -24,8 +24,8 @@
#include <QTimer>
SipStatusMessage::SipStatusMessage( SipStatusMessageType statusMessageType, const QString& contactId, const QString& message )
: m_statusMessageType( statusMessageType )
, m_contactId( contactId )
: m_contactId( contactId )
, m_statusMessageType( statusMessageType )
, m_message( message )
{
// make this temporary for now, as soon as i know how: add ack button