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