Do not clean whitespaces/ensure final line in autosave
Do not clean whitespaces/ensure final line in autosave

Calling beginEditBlock() triggers a textChanged() signal and
did "confuse" Qt Quick Designer.

We could just suppress the signal to work around the issue, but I think
it is cleaner to not alter the text document in autosave at all.

Changing the current text document in autosave might have other
unforeseeable implications.

What happened in the Qt Quick Designer was that textChanged() triggered
a reload of the document.
While the reload of the document usually just triggered a
short/unnoticed dealay, it can also trigger a message box with warnings.

Since we (correctly) assume the .QML file was altered outside
of Qt Quick Designer we do sanity checks and warn about code that
might not be supported.

Having those warnings whenever a file is autosaved is annoying.

Change-Id: I62f5486878956cbb776998e4aba468a91cb9ec8e
Reviewed-by: hjk <f81b91af79013637d070c18d38a75b90eaae8ba3@nokiamail.com>
Reviewed-by: Friedemann Kleint <1b9f2592239daaec4856ccc1cfb4d2d55b35fb71@digia.com>

duythanhphan/qt-creator,Distrotech/qtcreator,malikcjm/qtcreator,omniacreator/qtcreator,xianian/qt-creator,colede/qtcreator,danimo/qt-creator,Distrotech/qtcreator,farseerri/git_code,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,colede/qtcreator,amyvmiwei/qt-creator,farseerri/git_code,Distrotech/qtcreator,martyone/sailfish-qtcreator,darksylinc/qt-creator,richardmg/qtcreator,kuba1/qtcreator,omniacreator/qtcreator,darksylinc/qt-creator,omniacreator/qtcreator,AltarBeastiful/qt-creator,kuba1/qtcreator,martyone/sailfish-qtcreator,maui-packages/qt-creator,Distrotech/qtcreator,danimo/qt-creator,duythanhphan/qt-creator,duythanhphan/qt-creator,danimo/qt-creator,xianian/qt-creator,maui-packages/qt-creator,farseerri/git_code,amyvmiwei/qt-creator,maui-packages/qt-creator,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,danimo/qt-creator,darksylinc/qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,martyone/sailfish-qtcreator,danimo/qt-creator,richardmg/qtcreator,martyone/sailfish-qtcreator,malikcjm/qtcreator,omniacreator/qtcreator,richardmg/qtcreator,danimo/qt-creator,xianian/qt-creator,maui-packages/qt-creator,duythanhphan/qt-creator,darksylinc/qt-creator,AltarBeastiful/qt-creator,maui-packages/qt-creator,AltarBeastiful/qt-creator,AltarBeastiful/qt-creator,colede/qtcreator,richardmg/qtcreator,Distrotech/qtcreator,xianian/qt-creator,darksylinc/qt-creator,malikcjm/qtcreator,amyvmiwei/qt-creator,farseerri/git_code,malikcjm/qtcreator,amyvmiwei/qt-creator,omniacreator/qtcreator,xianian/qt-creator,danimo/qt-creator,Distrotech/qtcreator,darksylinc/qt-creator,AltarBeastiful/qt-creator,colede/qtcreator,xianian/qt-creator,darksylinc/qt-creator,omniacreator/qtcreator,xianian/qt-creator,farseerri/git_code,kuba1/qtcreator,martyone/sailfish-qtcreator,xianian/qt-creator,farseerri/git_code,kuba1/qtcreator,Distrotech/qtcreator,martyone/sailfish-qtcreator,malikcjm/qtcreator,farseerri/git_code,richardmg/qtcreator,colede/qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,colede/qtcreator,malikcjm/qtcreator,duythanhphan/qt-creator,amyvmiwei/qt-creator,xianian/qt-creator,kuba1/qtcreator,malikcjm/qtcreator,AltarBeastiful/qt-creator,kuba1/qtcreator,richardmg/qtcreator,kuba1/qtcreator,farseerri/git_code,kuba1/qtcreator,darksylinc/qt-creator,maui-packages/qt-creator,maui-packages/qt-creator,danimo/qt-creator,omniacreator/qtcreator,richardmg/qtcreator,duythanhphan/qt-creator,amyvmiwei/qt-creator,colede/qtcreator,duythanhphan/qt-creator