Commit 233b6425 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

Qt: fix MLModel

Was broken since the pure virtual method getId() was renamed in
the PLModel cleanup 4a61e6a8
(cherry picked from commit 88ecb49b)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a66950cd
......@@ -237,7 +237,7 @@ void MLModel::doDelete( QModelIndexList list )
{
for (int i = 0; i < list.count(); ++i)
{
int id = getId( list.at(i) );
int id = itemId( list.at(i) );
ml_DeleteSimple( p_ml, id );
}
}
......@@ -254,7 +254,7 @@ void MLModel::remove( QModelIndex idx )
}
}
int MLModel::getId( QModelIndex index ) const
int MLModel::itemId( const QModelIndex &index ) const
{
return getItem( index )->id();
}
......
......@@ -60,7 +60,7 @@ public:
return static_cast<MLItem*>( index.internalPointer() );
else return NULL;
}
virtual int getId( QModelIndex index ) const;
virtual int itemId( const QModelIndex & ) const;
QVariant data( const QModelIndex &idx, const int role = Qt::DisplayRole ) const;
bool setData( const QModelIndex &idx, const QVariant &value,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment