From 8cfb2aa237ede19d1eb23086905a010c908788f5 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 22 May 2013 11:40:57 -0300 Subject: Extend a bit the skeleton 'removes' on cylinder and weigth to help dirk. Signed-off-by: Tomaz Canabrava --- qt-ui/models.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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() -- cgit v1.2.3-70-g09d2