Bugfix: Last row could not be removed due to miscalculations of the bounds.
This commit is contained in:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user