mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Removed obsolete CTOR param model in PlayableItem.
This commit is contained in:
@@ -43,7 +43,7 @@ PlayableItem::~PlayableItem()
|
||||
}
|
||||
|
||||
|
||||
PlayableItem::PlayableItem( PlayableItem* parent, QAbstractItemModel* model )
|
||||
PlayableItem::PlayableItem( PlayableItem* parent )
|
||||
{
|
||||
init( parent );
|
||||
}
|
||||
@@ -130,8 +130,6 @@ PlayableItem::init( PlayableItem* parent, int row )
|
||||
{
|
||||
parent->children.insert( row, this );
|
||||
}
|
||||
|
||||
this->model = parent->model;
|
||||
}
|
||||
|
||||
if ( !m_query.isNull() )
|
||||
|
@@ -34,7 +34,7 @@ Q_OBJECT
|
||||
public:
|
||||
~PlayableItem();
|
||||
|
||||
explicit PlayableItem( PlayableItem* parent = 0, QAbstractItemModel* model = 0 );
|
||||
explicit PlayableItem( PlayableItem* parent = 0 );
|
||||
explicit PlayableItem( const Tomahawk::artist_ptr& artist, PlayableItem* parent = 0, int row = -1 );
|
||||
explicit PlayableItem( const Tomahawk::album_ptr& album, PlayableItem* parent = 0, int row = -1 );
|
||||
explicit PlayableItem( const Tomahawk::result_ptr& result, PlayableItem* parent = 0, int row = -1 );
|
||||
@@ -61,7 +61,6 @@ public:
|
||||
QList<PlayableItem*> children;
|
||||
|
||||
QPersistentModelIndex index;
|
||||
QAbstractItemModel* model;
|
||||
|
||||
signals:
|
||||
void dataChanged();
|
||||
|
@@ -39,7 +39,7 @@ using namespace Tomahawk;
|
||||
|
||||
PlayableModel::PlayableModel( QObject* parent, bool loading )
|
||||
: QAbstractItemModel( parent )
|
||||
, m_rootItem( new PlayableItem( 0, this ) )
|
||||
, m_rootItem( new PlayableItem( 0 ) )
|
||||
, m_readOnly( true )
|
||||
, m_loading( loading )
|
||||
{
|
||||
@@ -499,7 +499,7 @@ PlayableModel::clear()
|
||||
emit beginResetModel();
|
||||
delete m_rootItem;
|
||||
m_rootItem = 0;
|
||||
m_rootItem = new PlayableItem( 0, this );
|
||||
m_rootItem = new PlayableItem( 0 );
|
||||
emit endResetModel();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user