forked from qt-creator/qt-creator
add errorString output argument to IFile::reload() & IEditor::open()
add/unify read error handling in all affected classes
This commit is contained in:
@@ -1787,9 +1787,9 @@ QString CPPEditor::id() const
|
||||
return QLatin1String(CppEditor::Constants::CPPEDITOR_ID);
|
||||
}
|
||||
|
||||
bool CPPEditor::open(const QString & fileName)
|
||||
bool CPPEditor::open(QString *errorString, const QString & fileName)
|
||||
{
|
||||
bool b = TextEditor::BaseTextEditor::open(fileName);
|
||||
bool b = TextEditor::BaseTextEditor::open(errorString, fileName);
|
||||
editorWidget()->setMimeType(Core::ICore::instance()->mimeDatabase()->findByFile(QFileInfo(fileName)).type());
|
||||
return b;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user