revert() should operate in OnFieldChange edit strategy just as submit() does. The reason in Qt 4 for excluding OnFieldChange was that there was no opportunity to revert. The model was refreshed, causing all changes to be lost. In Qt 5 a failed edit remains in the cache until user action, which could be to revert. Change-Id: Ide021c4f83a53834b7ed81f2abfa3aa49317704d Reviewed-by: Mark Brand <mabrand@mabrand.nl> |
||
|---|---|---|
| .. | ||
| qsqlquerymodel | ||
| qsqlrelationaltablemodel | ||
| qsqltablemodel | ||
| models.pro | ||