qt5base-lts/tests/auto/widgets/util
Jarek Kobus cee4d0c0b7 Add a resetClean() method to the undo stack
With the current API it is not possible to reset the
index into -1. We have setClean() method, but
we are lacking setDirty(). This is needed
in case when the document has changed outside
of the editor and nothing has changed
in the undo stack history. In this case we
don't know the state of the file modified
externally so we need to mark that editor's
contents is different from the file contents
and undoing or redoing commands can't bring
the editor to the clean state.
This may also be useful to call it when
we created a new document and haven't saved
it yet or when the document was restored
from backup file.

Task-number: QTCREATORBUG-17048
Change-Id: I64e2052b3559299e0b6939831557a07a59a851b6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2016-10-24 13:03:40 +00:00
..
qcompleter Merge remote-tracking branch 'origin/5.7' into 5.8 2016-10-06 20:12:27 +02:00
qscroller autotests: use QTest::createTouchDevice() 2016-06-10 13:07:17 +00:00
qsystemtrayicon QtWidgets: Remove Windows CE. 2016-04-07 10:24:45 +00:00
qundogroup Merge remote-tracking branch 'origin/5.6' into 5.7 2016-10-05 19:33:26 +02:00
qundostack Add a resetClean() method to the undo stack 2016-10-24 13:03:40 +00:00
util.pro Remove Symbian specific code from qtbase. 2012-01-31 07:08:31 +01:00