mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
* QueueProxyModel now inherits from PlayableProxyModel.
This commit is contained in:
parent
68bf96f924
commit
0f6f58373e
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user