emit data changed signal after reading from file
This commit is contained in:
parent
c8ab63723f
commit
65a3f125e0
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,8 @@ void CheckableTestModel::read(const QJsonObject &json)
|
||||||
test.items().read(testData.toArray());
|
test.items().read(testData.toArray());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emit dataChanged(index(0, 0), index(rowCount() - 1, columnCount() - 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CheckableTestModel::isValidIndex(const QModelIndex &index) const
|
bool CheckableTestModel::isValidIndex(const QModelIndex &index) const
|
||||||
|
|
Loading…
Reference in a new issue