From 70d392d23515e9fc4c5a64897fd4c295d3f17817 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 13 Apr 2011 13:00:30 +0200 Subject: core: make context and widget IContext data members --- src/plugins/resourceeditor/resourceeditorfactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/resourceeditor/resourceeditorfactory.cpp') diff --git a/src/plugins/resourceeditor/resourceeditorfactory.cpp b/src/plugins/resourceeditor/resourceeditorfactory.cpp index 60dba52302..dcfbfd77c5 100644 --- a/src/plugins/resourceeditor/resourceeditorfactory.cpp +++ b/src/plugins/resourceeditor/resourceeditorfactory.cpp @@ -48,7 +48,6 @@ using namespace ResourceEditor::Constants; ResourceEditorFactory::ResourceEditorFactory(ResourceEditorPlugin *plugin) : Core::IEditorFactory(plugin), m_mimeTypes(QStringList(QLatin1String("application/vnd.nokia.xml.qt.resource"))), - m_context(ResourceEditor::Constants::C_RESOURCEEDITOR), m_plugin(plugin) { Core::FileIconProvider *iconProvider = Core::FileIconProvider::instance(); @@ -78,7 +77,8 @@ Core::IFile *ResourceEditorFactory::open(const QString &fileName) Core::IEditor *ResourceEditorFactory::createEditor(QWidget *parent) { - return new ResourceEditorW(m_context, m_plugin, parent); + Core::Context context(ResourceEditor::Constants::C_RESOURCEEDITOR); + return new ResourceEditorW(context, m_plugin, parent); } QStringList ResourceEditorFactory::mimeTypes() const -- cgit v1.2.1