mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* QueueProxyModel now inherits from PlayableProxyModel.
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
|
||||
#include "QueueProxyModel.h"
|
||||
|
||||
#include "QueueProxyModelPlaylistInterface.h"
|
||||
#include "playlist/TrackView.h"
|
||||
#include "ViewManager.h"
|
||||
#include "utils/Logger.h"
|
||||
@@ -29,7 +28,7 @@ using namespace Tomahawk;
|
||||
|
||||
|
||||
QueueProxyModel::QueueProxyModel( TrackView* parent )
|
||||
: PlaylistProxyModel( parent )
|
||||
: PlayableProxyModel( parent )
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
@@ -57,15 +56,3 @@ QueueProxyModel::onTrackCountChanged( unsigned int count )
|
||||
if ( count == 0 )
|
||||
ViewManager::instance()->hideQueue();
|
||||
}
|
||||
|
||||
|
||||
Tomahawk::playlistinterface_ptr
|
||||
QueueProxyModel::playlistInterface()
|
||||
{
|
||||
if ( m_playlistInterface.isNull() )
|
||||
{
|
||||
m_playlistInterface = Tomahawk::playlistinterface_ptr( new Tomahawk::QueueProxyModelPlaylistInterface( this ) );
|
||||
}
|
||||
|
||||
return m_playlistInterface;
|
||||
}
|
||||
|
@@ -20,14 +20,14 @@
|
||||
#ifndef QUEUEPROXYMODEL_H
|
||||
#define QUEUEPROXYMODEL_H
|
||||
|
||||
#include "PlaylistProxyModel.h"
|
||||
#include "PlayableProxyModel.h"
|
||||
|
||||
#include "DllMacro.h"
|
||||
|
||||
class QMetaData;
|
||||
class TrackView;
|
||||
|
||||
class DLLEXPORT QueueProxyModel : public PlaylistProxyModel
|
||||
class DLLEXPORT QueueProxyModel : public PlayableProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -35,8 +35,6 @@ public:
|
||||
explicit QueueProxyModel( TrackView* parent = 0 );
|
||||
virtual ~QueueProxyModel();
|
||||
|
||||
virtual Tomahawk::playlistinterface_ptr playlistInterface();
|
||||
|
||||
private slots:
|
||||
void onIndexActivated( const QModelIndex& index );
|
||||
void onTrackCountChanged( unsigned int count );
|
||||
|
Reference in New Issue
Block a user