forked from qt-creator/qt-creator
Fix QML to UTF-8, unless changed in editor
Task-id: QTCREATORBUG-3424
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user