Extend a bit the skeleton 'removes' on cylinder and weigth to help dirk.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-05-22 11:40:57 -03:00
parent 0b30c821ae
commit 8cfb2aa237

View file

@ -184,7 +184,9 @@ void CylindersModel::remove(const QModelIndex& index)
if (index.column() != REMOVE){ if (index.column() != REMOVE){
return; return;
} }
beginRemoveRows(QModelIndex(), index.row(), index.row()); // yah, know, ugly.
// Remove code should be here. // Remove code should be here.
endRemoveRows();
} }
void WeightModel::remove(const QModelIndex& index) void WeightModel::remove(const QModelIndex& index)
@ -192,7 +194,9 @@ void WeightModel::remove(const QModelIndex& index)
if (index.column() != REMOVE){ if (index.column() != REMOVE){
return; return;
} }
beginRemoveRows(QModelIndex(), index.row(), index.row()); // yah, know, ugly.
// Remove code should be here. // Remove code should be here.
endRemoveRows();
} }
void WeightModel::clear() void WeightModel::clear()