VCS/Diff editors: Set readonly attributes correctly.

Make VCS-generated editors read-only, enable editing
when opening a patch.
Make VCS-Editor non-read-only by default, add setter
for "Forced read-only" that makes it a temporary,
read-only file.

Task-number: QTCREATORBUG-1528
Reviewed-by: Thorbjorn Lindeijer <thorbjorn.lindeijer@nokia.com>
This commit is contained in:
Friedemann Kleint
2010-06-07 14:53:28 +02:00
parent d326c16747
commit c745155191
9 changed files with 61 additions and 9 deletions

View File

@@ -586,6 +586,7 @@ VCSBase::VCSBaseEditor *MercurialClient::createVCSEditor(const QString &kind, QS
}
core->editorManager()->activateEditor(outputEditor);
baseEditor->setForceReadOnly(true);
return baseEditor;
}