a working multi delete in libraries
This commit is contained in:
parent
8eeb3b5151
commit
6c33e52ea3
10 changed files with 51 additions and 14 deletions
|
@ -235,3 +235,12 @@ void ImageProxyModel::deleteImage(const int &row) {
|
|||
auto model = qobject_cast<ImageSqlModel *>(sourceModel());
|
||||
model->deleteImage(row);
|
||||
}
|
||||
|
||||
void ImageProxyModel::deleteImages(const QVector<int> &rows) {
|
||||
auto model = qobject_cast<ImageSqlModel *>(sourceModel());
|
||||
qDebug() << "DELETING!!!!!!!!!!!!!!!!!!!!!!!" << rows;
|
||||
for (int i = rows.size() - 1; i >= 0; i--) {
|
||||
qDebug() << "deleting" << rows.at(i);
|
||||
model->deleteImage(rows.at(i));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue