forked from qt-creator/qt-creator
Introduced mime-type for ObjC++.
Updated/fixed the code to treat treat text/x-objcsrc and text/x-objc++src correctly. Change-Id: I1ab97577c786a28381398e4e0fac177325d00d7b Reviewed-by: Sergey Shambir <sergey.shambir.auto@gmail.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
732f8a06ae
commit
1478e661ed
@@ -701,7 +701,8 @@ CppModelManagerInterface *CPPEditorWidget::modelManager() const
|
||||
void CPPEditorWidget::setMimeType(const QString &mt)
|
||||
{
|
||||
BaseTextEditorWidget::setMimeType(mt);
|
||||
setObjCEnabled(mt == QLatin1String(CppTools::Constants::OBJECTIVE_CPP_SOURCE_MIMETYPE));
|
||||
setObjCEnabled(mt == QLatin1String(CppTools::Constants::OBJECTIVE_C_SOURCE_MIMETYPE)
|
||||
|| mt == QLatin1String(CppTools::Constants::OBJECTIVE_CPP_SOURCE_MIMETYPE));
|
||||
}
|
||||
|
||||
void CPPEditorWidget::setObjCEnabled(bool onoff)
|
||||
|
||||
Reference in New Issue
Block a user