summaryrefslogtreecommitdiff
path: root/src/plugins/glsleditor/glsleditorfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/glsleditor/glsleditorfactory.cpp')
-rw-r--r--src/plugins/glsleditor/glsleditorfactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/glsleditor/glsleditorfactory.cpp b/src/plugins/glsleditor/glsleditorfactory.cpp
index deadc5ea34..397e392241 100644
--- a/src/plugins/glsleditor/glsleditorfactory.cpp
+++ b/src/plugins/glsleditor/glsleditorfactory.cpp
@@ -75,14 +75,14 @@ QString GLSLEditorFactory::displayName() const
return tr(C_GLSLEDITOR_DISPLAY_NAME);
}
-Core::IFile *GLSLEditorFactory::open(const QString &fileName)
+Core::IDocument *GLSLEditorFactory::open(const QString &fileName)
{
Core::IEditor *iface = Core::EditorManager::instance()->openEditor(fileName, id());
if (!iface) {
qWarning() << "QmlEditorFactory::open: openEditor failed for " << fileName;
return 0;
}
- return iface->file();
+ return iface->document();
}
Core::IEditor *GLSLEditorFactory::createEditor(QWidget *parent)