TextEditor: Update actions after toggling read only mode.

Task-number: QTCREATORBUG-9188

Change-Id: I3448645397e7a39487f2e961728ebef924eec7f6
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
David Schulz
2013-10-30 09:27:32 +01:00
parent 0dbaac7bcf
commit 88c647ce68
3 changed files with 3 additions and 0 deletions

View File

@@ -5773,6 +5773,7 @@ void BaseTextEditorWidget::unfoldAll()
void BaseTextEditorWidget::setReadOnly(bool b)
{
QPlainTextEdit::setReadOnly(b);
emit readOnlyChanged();
if (b)
setTextInteractionFlags(textInteractionFlags() | Qt::TextSelectableByKeyboard);
}