Commit 88ecb49b authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: fix MLModel

Was broken since the pure virtual method getId() was renamed in
the PLModel cleanup 4a61e6a8
parent 8eb8d941
......@@ -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