diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-22 11:40:57 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-22 11:40:57 -0300 |
commit | 8cfb2aa237ede19d1eb23086905a010c908788f5 (patch) | |
tree | 9959267c9ef79e8f3cb5fc54e0be96c26487aa60 | |
parent | 0b30c821ae5b8cb9f5e3e8d49152d56f215aeec4 (diff) | |
download | subsurface-8cfb2aa237ede19d1eb23086905a010c908788f5.tar.gz |
Extend a bit the skeleton 'removes' on cylinder and weigth to help dirk.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
-rw-r--r-- | qt-ui/models.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 82c125df6..6ac320b26 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -184,7 +184,9 @@ void CylindersModel::remove(const QModelIndex& index) if (index.column() != REMOVE){ return; } + beginRemoveRows(QModelIndex(), index.row(), index.row()); // yah, know, ugly. // Remove code should be here. + endRemoveRows(); } void WeightModel::remove(const QModelIndex& index) @@ -192,7 +194,9 @@ void WeightModel::remove(const QModelIndex& index) if (index.column() != REMOVE){ return; } + beginRemoveRows(QModelIndex(), index.row(), index.row()); // yah, know, ugly. // Remove code should be here. + endRemoveRows(); } void WeightModel::clear() |