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:
@@ -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;
|
|
||||||
}
|
|
||||||
|
@@ -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 );
|
||||||
|
Reference in New Issue
Block a user