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

* QueueProxyModel now inherits from PlayableProxyModel.

This commit is contained in:
Christian Muehlhaeuser
2012-06-01 00:31:33 +02:00
parent 68bf96f924
commit 0f6f58373e
2 changed files with 3 additions and 18 deletions

View File

@@ -19,7 +19,6 @@
#include "QueueProxyModel.h" #include "QueueProxyModel.h"
#include "QueueProxyModelPlaylistInterface.h"
#include "playlist/TrackView.h" #include "playlist/TrackView.h"
#include "ViewManager.h" #include "ViewManager.h"
#include "utils/Logger.h" #include "utils/Logger.h"
@@ -29,7 +28,7 @@ using namespace Tomahawk;
QueueProxyModel::QueueProxyModel( TrackView* parent ) QueueProxyModel::QueueProxyModel( TrackView* parent )
: PlaylistProxyModel( parent ) : PlayableProxyModel( parent )
{ {
qDebug() << Q_FUNC_INFO; qDebug() << Q_FUNC_INFO;
@@ -57,15 +56,3 @@ QueueProxyModel::onTrackCountChanged( unsigned int count )
if ( count == 0 ) if ( count == 0 )
ViewManager::instance()->hideQueue(); ViewManager::instance()->hideQueue();
} }
Tomahawk::playlistinterface_ptr
QueueProxyModel::playlistInterface()
{
if ( m_playlistInterface.isNull() )
{
m_playlistInterface = Tomahawk::playlistinterface_ptr( new Tomahawk::QueueProxyModelPlaylistInterface( this ) );
}
return m_playlistInterface;
}

View File

@@ -20,14 +20,14 @@
#ifndef QUEUEPROXYMODEL_H #ifndef QUEUEPROXYMODEL_H
#define QUEUEPROXYMODEL_H #define QUEUEPROXYMODEL_H
#include "PlaylistProxyModel.h" #include "PlayableProxyModel.h"
#include "DllMacro.h" #include "DllMacro.h"
class QMetaData; class QMetaData;
class TrackView; class TrackView;
class DLLEXPORT QueueProxyModel : public PlaylistProxyModel class DLLEXPORT QueueProxyModel : public PlayableProxyModel
{ {
Q_OBJECT Q_OBJECT
@@ -35,8 +35,6 @@ public:
explicit QueueProxyModel( TrackView* parent = 0 ); explicit QueueProxyModel( TrackView* parent = 0 );
virtual ~QueueProxyModel(); virtual ~QueueProxyModel();
virtual Tomahawk::playlistinterface_ptr playlistInterface();
private slots: private slots:
void onIndexActivated( const QModelIndex& index ); void onIndexActivated( const QModelIndex& index );
void onTrackCountChanged( unsigned int count ); void onTrackCountChanged( unsigned int count );