mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
0b30c821ae
commit
8cfb2aa237
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue