Fix QML to UTF-8, unless changed in editor

Task-id: QTCREATORBUG-3424
This commit is contained in:
mae
2010-12-20 18:10:50 +01:00
parent 96475f9553
commit 4226538ac3
6 changed files with 19 additions and 3 deletions

View File

@@ -93,4 +93,11 @@ QString QmlJSEditorEditable::preferredModeType() const
return QString();
}
void QmlJSEditorEditable::setTextCodec(QTextCodec *codec, TextCodecReason reason)
{
if (reason != TextCodecOtherReason) // qml is defined to be utf8
return;
editor()->setTextCodec(codec);
}
} // namespace QmlJSEditor