Bugfix: Last row could not be removed due to miscalculations of the bounds.

This commit is contained in:
2025-12-09 09:33:46 +01:00
parent 169d8f9f1e
commit e21c899aac
2 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@ class TableModel : public QAbstractTableModel {
public slots:
// bool insertRows(int position, int rows, const QModelIndex& parentIndex = QModelIndex())
// override;
bool removeRows(int position, int rows, const QModelIndex& parentIndex = QModelIndex()) override;
bool removeRows(int firstRow, int nRows, const QModelIndex& parentIndex = QModelIndex()) override;
void appendItems(const QByteArray& jsonDoc);
void insertItems(int startPosition, const QByteArray& jsonDoc, const QModelIndex& parentIndex);