summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/android/androidmanifesteditorfactory.cpp4
-rw-r--r--src/plugins/android/androidmanifesteditorfactory.h2
-rw-r--r--src/plugins/android/androidmanifesteditorwidget.h2
-rw-r--r--src/plugins/bineditor/bineditorplugin.cpp4
-rw-r--r--src/plugins/bineditor/bineditorplugin.h2
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeeditor.cpp6
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeeditor.h4
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp4
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeeditorfactory.h2
-rw-r--r--src/plugins/coreplugin/editormanager/editormanager.cpp4
-rw-r--r--src/plugins/coreplugin/editormanager/ieditor.h2
-rw-r--r--src/plugins/coreplugin/editormanager/ieditorfactory.h2
-rw-r--r--src/plugins/cppeditor/cppeditor.cpp4
-rw-r--r--src/plugins/cppeditor/cppeditor.h4
-rw-r--r--src/plugins/cppeditor/cppeditorplugin.cpp4
-rw-r--r--src/plugins/cppeditor/cppeditorplugin.h2
-rw-r--r--src/plugins/designer/formeditorfactory.cpp4
-rw-r--r--src/plugins/designer/formeditorfactory.h2
-rw-r--r--src/plugins/designer/formeditorw.h2
-rw-r--r--src/plugins/diffeditor/diffeditorfactory.cpp4
-rw-r--r--src/plugins/diffeditor/diffeditorfactory.h2
-rw-r--r--src/plugins/diffeditor/diffshoweditorfactory.cpp4
-rw-r--r--src/plugins/diffeditor/diffshoweditorfactory.h2
-rw-r--r--src/plugins/genericprojectmanager/genericprojectfileseditor.cpp11
-rw-r--r--src/plugins/genericprojectmanager/genericprojectfileseditor.h6
-rw-r--r--src/plugins/glsleditor/glsleditor.cpp4
-rw-r--r--src/plugins/glsleditor/glsleditoreditable.h2
-rw-r--r--src/plugins/glsleditor/glsleditorfactory.cpp4
-rw-r--r--src/plugins/glsleditor/glsleditorfactory.h2
-rw-r--r--src/plugins/imageviewer/imageviewerfactory.cpp4
-rw-r--r--src/plugins/imageviewer/imageviewerfactory.h2
-rw-r--r--src/plugins/pythoneditor/pythoneditor.cpp4
-rw-r--r--src/plugins/pythoneditor/pythoneditor.h2
-rw-r--r--src/plugins/pythoneditor/pythoneditorfactory.cpp4
-rw-r--r--src/plugins/pythoneditor/pythoneditorfactory.h2
-rw-r--r--src/plugins/qmakeprojectmanager/profileeditor.cpp7
-rw-r--r--src/plugins/qmakeprojectmanager/profileeditor.h4
-rw-r--r--src/plugins/qmakeprojectmanager/profileeditorfactory.cpp4
-rw-r--r--src/plugins/qmakeprojectmanager/profileeditorfactory.h2
-rw-r--r--src/plugins/qmljseditor/qmljseditor.cpp4
-rw-r--r--src/plugins/qmljseditor/qmljseditoreditable.h2
-rw-r--r--src/plugins/qmljseditor/qmljseditorfactory.cpp4
-rw-r--r--src/plugins/qmljseditor/qmljseditorfactory.h2
-rw-r--r--src/plugins/qnx/bardescriptoreditorfactory.cpp4
-rw-r--r--src/plugins/qnx/bardescriptoreditorfactory.h2
-rw-r--r--src/plugins/qnx/bardescriptoreditorwidget.h2
-rw-r--r--src/plugins/resourceeditor/resourceeditorfactory.cpp4
-rw-r--r--src/plugins/resourceeditor/resourceeditorfactory.h2
-rw-r--r--src/plugins/texteditor/basetexteditor.cpp2
-rw-r--r--src/plugins/texteditor/plaintexteditor.cpp4
-rw-r--r--src/plugins/texteditor/plaintexteditor.h4
-rw-r--r--src/plugins/texteditor/plaintexteditorfactory.cpp4
-rw-r--r--src/plugins/texteditor/plaintexteditorfactory.h2
-rw-r--r--src/plugins/texteditor/snippets/snippeteditor.h2
-rw-r--r--src/plugins/vcsbase/basevcseditorfactory.cpp4
-rw-r--r--src/plugins/vcsbase/basevcseditorfactory.h6
-rw-r--r--src/plugins/vcsbase/basevcssubmiteditorfactory.cpp4
-rw-r--r--src/plugins/vcsbase/basevcssubmiteditorfactory.h6
58 files changed, 100 insertions, 100 deletions
diff --git a/src/plugins/android/androidmanifesteditorfactory.cpp b/src/plugins/android/androidmanifesteditorfactory.cpp
index a60342cda4..b5767e2edd 100644
--- a/src/plugins/android/androidmanifesteditorfactory.cpp
+++ b/src/plugins/android/androidmanifesteditorfactory.cpp
@@ -49,9 +49,9 @@ AndroidManifestEditorFactory::AndroidManifestEditorFactory(QObject *parent)
new TextEditor::TextEditorActionHandler(this, Constants::ANDROID_MANIFEST_EDITOR_CONTEXT);
}
-Core::IEditor *AndroidManifestEditorFactory::createEditor(QWidget *parent)
+Core::IEditor *AndroidManifestEditorFactory::createEditor()
{
- AndroidManifestEditorWidget *editor = new AndroidManifestEditorWidget(parent);
+ AndroidManifestEditorWidget *editor = new AndroidManifestEditorWidget();
TextEditor::TextEditorSettings::initializeEditor(editor);
return editor->editor();
}
diff --git a/src/plugins/android/androidmanifesteditorfactory.h b/src/plugins/android/androidmanifesteditorfactory.h
index e9bd307ea2..7b62f0ad57 100644
--- a/src/plugins/android/androidmanifesteditorfactory.h
+++ b/src/plugins/android/androidmanifesteditorfactory.h
@@ -42,7 +42,7 @@ class AndroidManifestEditorFactory : public Core::IEditorFactory
public:
explicit AndroidManifestEditorFactory(QObject *parent = 0);
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
};
} // namespace Internal
diff --git a/src/plugins/android/androidmanifesteditorwidget.h b/src/plugins/android/androidmanifesteditorwidget.h
index eada4a006c..1f5932f590 100644
--- a/src/plugins/android/androidmanifesteditorwidget.h
+++ b/src/plugins/android/androidmanifesteditorwidget.h
@@ -84,7 +84,7 @@ public:
Source
};
- explicit AndroidManifestEditorWidget(QWidget *parent);
+ explicit AndroidManifestEditorWidget(QWidget *parent = 0);
bool open(QString *errorString, const QString &fileName, const QString &realFileName);
diff --git a/src/plugins/bineditor/bineditorplugin.cpp b/src/plugins/bineditor/bineditorplugin.cpp
index 7f853340e2..f2f57d47fa 100644
--- a/src/plugins/bineditor/bineditorplugin.cpp
+++ b/src/plugins/bineditor/bineditorplugin.cpp
@@ -409,9 +409,9 @@ BinEditorFactory::BinEditorFactory(BinEditorPlugin *owner) :
addMimeType(Constants::C_BINEDITOR_MIMETYPE);
}
-Core::IEditor *BinEditorFactory::createEditor(QWidget *parent)
+Core::IEditor *BinEditorFactory::createEditor()
{
- BinEditorWidget *widget = new BinEditorWidget(parent);
+ BinEditorWidget *widget = new BinEditorWidget();
BinEditor *editor = new BinEditor(widget);
m_owner->initializeEditor(widget);
diff --git a/src/plugins/bineditor/bineditorplugin.h b/src/plugins/bineditor/bineditorplugin.h
index 66c8adf7ed..c1b0e8fd99 100644
--- a/src/plugins/bineditor/bineditorplugin.h
+++ b/src/plugins/bineditor/bineditorplugin.h
@@ -102,7 +102,7 @@ class BinEditorFactory : public Core::IEditorFactory
public:
explicit BinEditorFactory(BinEditorPlugin *owner);
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
private:
BinEditorPlugin *m_owner;
diff --git a/src/plugins/cmakeprojectmanager/cmakeeditor.cpp b/src/plugins/cmakeprojectmanager/cmakeeditor.cpp
index 52200b679b..a5f48c9d77 100644
--- a/src/plugins/cmakeprojectmanager/cmakeeditor.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeeditor.cpp
@@ -65,10 +65,10 @@ CMakeEditor::CMakeEditor(CMakeEditorWidget *editor)
connect(document(), SIGNAL(changed()), this, SLOT(markAsChanged()));
}
-Core::IEditor *CMakeEditor::duplicate(QWidget *parent)
+Core::IEditor *CMakeEditor::duplicate()
{
CMakeEditorWidget *w = qobject_cast<CMakeEditorWidget*>(widget());
- CMakeEditorWidget *ret = new CMakeEditorWidget(parent, w->factory());
+ CMakeEditorWidget *ret = new CMakeEditorWidget(w->factory());
ret->duplicateFrom(w);
TextEditor::TextEditorSettings::initializeEditor(ret);
return ret->editor();
@@ -116,7 +116,7 @@ void CMakeEditor::build()
// CMakeEditor
//
-CMakeEditorWidget::CMakeEditorWidget(QWidget *parent, CMakeEditorFactory *factory)
+CMakeEditorWidget::CMakeEditorWidget(CMakeEditorFactory *factory, QWidget *parent)
: BaseTextEditorWidget(parent), m_factory(factory)
{
QSharedPointer<CMakeDocument> doc(new CMakeDocument);
diff --git a/src/plugins/cmakeprojectmanager/cmakeeditor.h b/src/plugins/cmakeprojectmanager/cmakeeditor.h
index 00f1b6f461..a416e5577c 100644
--- a/src/plugins/cmakeprojectmanager/cmakeeditor.h
+++ b/src/plugins/cmakeprojectmanager/cmakeeditor.h
@@ -57,7 +57,7 @@ public:
CMakeEditor(CMakeEditorWidget *);
bool duplicateSupported() const { return true; }
- Core::IEditor *duplicate(QWidget *parent);
+ Core::IEditor *duplicate();
Core::Id id() const;
TextEditor::CompletionAssistProvider *completionAssistProvider();
@@ -71,7 +71,7 @@ class CMakeEditorWidget : public TextEditor::BaseTextEditorWidget
Q_OBJECT
public:
- CMakeEditorWidget(QWidget *parent, CMakeEditorFactory *factory);
+ CMakeEditorWidget(CMakeEditorFactory *factory, QWidget *parent = 0);
bool save(const QString &fileName = QString());
diff --git a/src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp b/src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp
index 015a208cd6..8f1adee241 100644
--- a/src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp
@@ -69,9 +69,9 @@ CMakeEditorFactory::CMakeEditorFactory(CMakeManager *manager)
contextMenu->addAction(cmd);
}
-Core::IEditor *CMakeEditorFactory::createEditor(QWidget *parent)
+Core::IEditor *CMakeEditorFactory::createEditor()
{
- CMakeEditorWidget *rc = new CMakeEditorWidget(parent, this);
+ CMakeEditorWidget *rc = new CMakeEditorWidget(this);
TextEditor::TextEditorSettings::initializeEditor(rc);
return rc->editor();
}
diff --git a/src/plugins/cmakeprojectmanager/cmakeeditorfactory.h b/src/plugins/cmakeprojectmanager/cmakeeditorfactory.h
index c942438509..4d6b4fae95 100644
--- a/src/plugins/cmakeprojectmanager/cmakeeditorfactory.h
+++ b/src/plugins/cmakeprojectmanager/cmakeeditorfactory.h
@@ -43,7 +43,7 @@ class CMakeEditorFactory : public Core::IEditorFactory
public:
CMakeEditorFactory(CMakeManager *parent);
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
private:
const QStringList m_mimeTypes;
diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp
index 18a6feb049..4c2e9c9bbd 100644
--- a/src/plugins/coreplugin/editormanager/editormanager.cpp
+++ b/src/plugins/coreplugin/editormanager/editormanager.cpp
@@ -1416,7 +1416,7 @@ IEditor *EditorManager::createEditor(const Id &editorId, const QString &fileName
return 0;
}
- IEditor *editor = factories.front()->createEditor(m_instance);
+ IEditor *editor = factories.front()->createEditor();
if (editor)
connect(editor->document(), SIGNAL(changed()), m_instance, SLOT(handleDocumentStateChange()));
if (editor)
@@ -2410,7 +2410,7 @@ Core::IEditor *EditorManager::duplicateEditor(Core::IEditor *editor)
if (!editor->duplicateSupported())
return 0;
- IEditor *duplicate = editor->duplicate(0);
+ IEditor *duplicate = editor->duplicate();
duplicate->restoreState(editor->saveState());
emit m_instance->editorCreated(duplicate, duplicate->document()->filePath());
addEditor(duplicate);
diff --git a/src/plugins/coreplugin/editormanager/ieditor.h b/src/plugins/coreplugin/editormanager/ieditor.h
index c38aa84e98..75ba8ddf4b 100644
--- a/src/plugins/coreplugin/editormanager/ieditor.h
+++ b/src/plugins/coreplugin/editormanager/ieditor.h
@@ -52,7 +52,7 @@ public:
virtual Core::Id id() const = 0;
virtual bool duplicateSupported() const { return false; }
- virtual IEditor *duplicate(QWidget * /*parent*/) { return 0; }
+ virtual IEditor *duplicate() { return 0; }
virtual QByteArray saveState() const { return QByteArray(); }
virtual bool restoreState(const QByteArray &/*state*/) { return true; }
diff --git a/src/plugins/coreplugin/editormanager/ieditorfactory.h b/src/plugins/coreplugin/editormanager/ieditorfactory.h
index e4f4f31849..6a08caf9c5 100644
--- a/src/plugins/coreplugin/editormanager/ieditorfactory.h
+++ b/src/plugins/coreplugin/editormanager/ieditorfactory.h
@@ -43,7 +43,7 @@ class CORE_EXPORT IEditorFactory : public Core::IDocumentFactory
public:
IEditorFactory(QObject *parent = 0) : IDocumentFactory(parent) {}
- virtual IEditor *createEditor(QWidget *parent) = 0;
+ virtual IEditor *createEditor() = 0;
virtual IDocument *open(const QString &);
};
diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp
index 6b44b15670..850e4bce64 100644
--- a/src/plugins/cppeditor/cppeditor.cpp
+++ b/src/plugins/cppeditor/cppeditor.cpp
@@ -1499,9 +1499,9 @@ void CPPEditorWidget::keyPressEvent(QKeyEvent *e)
finishRename();
}
-Core::IEditor *CPPEditor::duplicate(QWidget *parent)
+Core::IEditor *CPPEditor::duplicate()
{
- CPPEditorWidget *newEditor = new CPPEditorWidget(parent);
+ CPPEditorWidget *newEditor = new CPPEditorWidget();
newEditor->duplicateFrom(editorWidget());
// A new QTextDocument was set, so update our signal/slot connection to the new document
newEditor->updateContentsChangedSignal();
diff --git a/src/plugins/cppeditor/cppeditor.h b/src/plugins/cppeditor/cppeditor.h
index 4a838ade7d..7a08c6c1a9 100644
--- a/src/plugins/cppeditor/cppeditor.h
+++ b/src/plugins/cppeditor/cppeditor.h
@@ -78,7 +78,7 @@ public:
CPPEditor(CPPEditorWidget *);
bool duplicateSupported() const { return true; }
- Core::IEditor *duplicate(QWidget *parent);
+ Core::IEditor *duplicate();
Core::Id id() const;
bool open(QString *errorString, const QString &fileName, const QString &realFileName);
@@ -97,7 +97,7 @@ class CPPEditorWidget : public TextEditor::BaseTextEditorWidget
public:
typedef TextEditor::TabSettings TabSettings;
- CPPEditorWidget(QWidget *parent);
+ CPPEditorWidget(QWidget *parent = 0);
~CPPEditorWidget();
void unCommentSelection();
diff --git a/src/plugins/cppeditor/cppeditorplugin.cpp b/src/plugins/cppeditor/cppeditorplugin.cpp
index fe02ac3d5c..505ffe9d17 100644
--- a/src/plugins/cppeditor/cppeditorplugin.cpp
+++ b/src/plugins/cppeditor/cppeditorplugin.cpp
@@ -93,9 +93,9 @@ CppEditorFactory::CppEditorFactory(CppEditorPlugin *owner) :
}
}
-IEditor *CppEditorFactory::createEditor(QWidget *parent)
+IEditor *CppEditorFactory::createEditor()
{
- CPPEditorWidget *editor = new CPPEditorWidget(parent);
+ CPPEditorWidget *editor = new CPPEditorWidget();
editor->setRevisionsVisible(true);
m_owner->initializeEditor(editor);
return editor->editor();
diff --git a/src/plugins/cppeditor/cppeditorplugin.h b/src/plugins/cppeditor/cppeditorplugin.h
index 3d51932e13..998c6ca952 100644
--- a/src/plugins/cppeditor/cppeditorplugin.h
+++ b/src/plugins/cppeditor/cppeditorplugin.h
@@ -255,7 +255,7 @@ class CppEditorFactory : public Core::IEditorFactory
public:
CppEditorFactory(CppEditorPlugin *owner);
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
private:
CppEditorPlugin *m_owner;
diff --git a/src/plugins/designer/formeditorfactory.cpp b/src/plugins/designer/formeditorfactory.cpp
index cbbd830c26..a005946fe3 100644
--- a/src/plugins/designer/formeditorfactory.cpp
+++ b/src/plugins/designer/formeditorfactory.cpp
@@ -57,9 +57,9 @@ FormEditorFactory::FormEditorFactory()
Core::FileIconProvider::registerIconOverlayForSuffix(":/formeditor/images/qt_ui.png", "ui");
}
-Core::IEditor *FormEditorFactory::createEditor(QWidget *parent)
+Core::IEditor *FormEditorFactory::createEditor()
{
- const EditorData data = FormEditorW::instance()->createEditor(parent);
+ const EditorData data = FormEditorW::instance()->createEditor();
if (data.formWindowEditor) {
Core::InfoBarEntry info(Core::Id(Constants::INFO_READ_ONLY),
tr("This file can only be edited in <b>Design</b> mode."));
diff --git a/src/plugins/designer/formeditorfactory.h b/src/plugins/designer/formeditorfactory.h
index 45b96f80ba..0b0d662071 100644
--- a/src/plugins/designer/formeditorfactory.h
+++ b/src/plugins/designer/formeditorfactory.h
@@ -42,7 +42,7 @@ class FormEditorFactory : public Core::IEditorFactory
public:
FormEditorFactory();
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
private slots:
void designerModeClicked();
diff --git a/src/plugins/designer/formeditorw.h b/src/plugins/designer/formeditorw.h
index 7f20ee2eda..c476e1c7ce 100644
--- a/src/plugins/designer/formeditorw.h
+++ b/src/plugins/designer/formeditorw.h
@@ -113,7 +113,7 @@ public:
// Deletes an existing instance if there is one.
static void deleteInstance();
- EditorData createEditor(QWidget *parent);
+ EditorData createEditor(QWidget *parent = 0);
inline QDesignerFormEditorInterface *designerEditor() const { return m_formeditor; }
inline QWidget * const*designerSubWindows() const { return m_designerSubWindows; }
diff --git a/src/plugins/diffeditor/diffeditorfactory.cpp b/src/plugins/diffeditor/diffeditorfactory.cpp
index 46fbbf1e74..4cd2a1b11f 100644
--- a/src/plugins/diffeditor/diffeditorfactory.cpp
+++ b/src/plugins/diffeditor/diffeditorfactory.cpp
@@ -46,9 +46,9 @@ DiffEditorFactory::DiffEditorFactory(QObject *parent)
addMimeType(QLatin1String(Constants::DIFF_EDITOR_MIMETYPE));
}
-Core::IEditor *DiffEditorFactory::createEditor(QWidget *parent)
+Core::IEditor *DiffEditorFactory::createEditor()
{
- DiffEditorWidget *editorWidget = new DiffEditorWidget(parent);
+ DiffEditorWidget *editorWidget = new DiffEditorWidget();
DiffEditor *editor = new DiffEditor(editorWidget);
return editor;
}
diff --git a/src/plugins/diffeditor/diffeditorfactory.h b/src/plugins/diffeditor/diffeditorfactory.h
index 7abe41259a..d171cfe243 100644
--- a/src/plugins/diffeditor/diffeditorfactory.h
+++ b/src/plugins/diffeditor/diffeditorfactory.h
@@ -47,7 +47,7 @@ class DiffEditorFactory : public Core::IEditorFactory
public:
explicit DiffEditorFactory(QObject *parent);
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
};
} // namespace Internal
diff --git a/src/plugins/diffeditor/diffshoweditorfactory.cpp b/src/plugins/diffeditor/diffshoweditorfactory.cpp
index b169a64898..a7e5e76bf8 100644
--- a/src/plugins/diffeditor/diffshoweditorfactory.cpp
+++ b/src/plugins/diffeditor/diffshoweditorfactory.cpp
@@ -46,9 +46,9 @@ DiffShowEditorFactory::DiffShowEditorFactory(QObject *parent)
setMimeTypes(QStringList() << QLatin1String(Constants::DIFF_EDITOR_MIMETYPE));
}
-Core::IEditor *DiffShowEditorFactory::createEditor(QWidget *parent)
+Core::IEditor *DiffShowEditorFactory::createEditor()
{
- DiffEditorWidget *editorWidget = new DiffEditorWidget(parent);
+ DiffEditorWidget *editorWidget = new DiffEditorWidget();
DiffShowEditor *editor = new DiffShowEditor(editorWidget);
return editor;
}
diff --git a/src/plugins/diffeditor/diffshoweditorfactory.h b/src/plugins/diffeditor/diffshoweditorfactory.h
index 268ee01e59..b1823a27a9 100644
--- a/src/plugins/diffeditor/diffshoweditorfactory.h
+++ b/src/plugins/diffeditor/diffshoweditorfactory.h
@@ -47,7 +47,7 @@ class DiffShowEditorFactory : public Core::IEditorFactory
public:
explicit DiffShowEditorFactory(QObject *parent);
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
};
} // namespace Internal
diff --git a/src/plugins/genericprojectmanager/genericprojectfileseditor.cpp b/src/plugins/genericprojectmanager/genericprojectfileseditor.cpp
index 48f5b77c95..5925f8427b 100644
--- a/src/plugins/genericprojectmanager/genericprojectfileseditor.cpp
+++ b/src/plugins/genericprojectmanager/genericprojectfileseditor.cpp
@@ -62,9 +62,9 @@ ProjectFilesFactory::ProjectFilesFactory(Manager *manager)
}
-Core::IEditor *ProjectFilesFactory::createEditor(QWidget *parent)
+Core::IEditor *ProjectFilesFactory::createEditor()
{
- ProjectFilesEditorWidget *ed = new ProjectFilesEditorWidget(parent, this);
+ ProjectFilesEditorWidget *ed = new ProjectFilesEditorWidget(this);
TextEditorSettings::initializeEditor(ed);
return ed->editor();
}
@@ -91,11 +91,10 @@ bool ProjectFilesEditor::duplicateSupported() const
return true;
}
-Core::IEditor *ProjectFilesEditor::duplicate(QWidget *parent)
+Core::IEditor *ProjectFilesEditor::duplicate()
{
ProjectFilesEditorWidget *parentEditor = qobject_cast<ProjectFilesEditorWidget *>(editorWidget());
- ProjectFilesEditorWidget *editor = new ProjectFilesEditorWidget(parent,
- parentEditor->factory());
+ ProjectFilesEditorWidget *editor = new ProjectFilesEditorWidget(parentEditor->factory());
TextEditorSettings::initializeEditor(editor);
return editor->editor();
}
@@ -106,7 +105,7 @@ Core::IEditor *ProjectFilesEditor::duplicate(QWidget *parent)
//
////////////////////////////////////////////////////////////////////////////////////////
-ProjectFilesEditorWidget::ProjectFilesEditorWidget(QWidget *parent, ProjectFilesFactory *factory)
+ProjectFilesEditorWidget::ProjectFilesEditorWidget(ProjectFilesFactory *factory, QWidget *parent)
: BaseTextEditorWidget(parent),
m_factory(factory)
{
diff --git a/src/plugins/genericprojectmanager/genericprojectfileseditor.h b/src/plugins/genericprojectmanager/genericprojectfileseditor.h
index d737e47571..521e451fa5 100644
--- a/src/plugins/genericprojectmanager/genericprojectfileseditor.h
+++ b/src/plugins/genericprojectmanager/genericprojectfileseditor.h
@@ -50,7 +50,7 @@ class ProjectFilesFactory: public Core::IEditorFactory
public:
ProjectFilesFactory(Manager *manager);
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
};
class ProjectFilesEditor : public TextEditor::BaseTextEditor
@@ -62,7 +62,7 @@ public:
Core::Id id() const;
bool duplicateSupported() const;
- Core::IEditor *duplicate(QWidget *parent);
+ Core::IEditor *duplicate();
};
class ProjectFilesEditorWidget : public TextEditor::BaseTextEditorWidget
@@ -70,7 +70,7 @@ class ProjectFilesEditorWidget : public TextEditor::BaseTextEditorWidget
Q_OBJECT
public:
- ProjectFilesEditorWidget(QWidget *parent, ProjectFilesFactory *factory);
+ ProjectFilesEditorWidget(ProjectFilesFactory *factory, QWidget *parent = 0);
ProjectFilesFactory *factory() const;
TextEditor::BaseTextEditor *createEditor();
diff --git a/src/plugins/glsleditor/glsleditor.cpp b/src/plugins/glsleditor/glsleditor.cpp
index a4936bc50f..471da95158 100644
--- a/src/plugins/glsleditor/glsleditor.cpp
+++ b/src/plugins/glsleditor/glsleditor.cpp
@@ -187,9 +187,9 @@ bool GLSLTextEditorWidget::isOutdated() const
return false;
}
-Core::IEditor *GLSLEditorEditable::duplicate(QWidget *parent)
+Core::IEditor *GLSLEditorEditable::duplicate()
{
- GLSLTextEditorWidget *newEditor = new GLSLTextEditorWidget(parent);
+ GLSLTextEditorWidget *newEditor = new GLSLTextEditorWidget();
newEditor->duplicateFrom(editorWidget());
TextEditor::TextEditorSettings::initializeEditor(newEditor);
return newEditor->editor();
diff --git a/src/plugins/glsleditor/glsleditoreditable.h b/src/plugins/glsleditor/glsleditoreditable.h
index f4fec5744c..8632c64fa9 100644
--- a/src/plugins/glsleditor/glsleditoreditable.h
+++ b/src/plugins/glsleditor/glsleditoreditable.h
@@ -45,7 +45,7 @@ public:
explicit GLSLEditorEditable(GLSLTextEditorWidget *);
bool duplicateSupported() const { return true; }
- Core::IEditor *duplicate(QWidget *parent);
+ Core::IEditor *duplicate();
Core::Id id() const;
bool open(QString *errorString, const QString &fileName, const QString &realFileName);
TextEditor::CompletionAssistProvider *completionAssistProvider();
diff --git a/src/plugins/glsleditor/glsleditorfactory.cpp b/src/plugins/glsleditor/glsleditorfactory.cpp
index f25cb99fbc..502d2dd3ef 100644
--- a/src/plugins/glsleditor/glsleditorfactory.cpp
+++ b/src/plugins/glsleditor/glsleditorfactory.cpp
@@ -63,9 +63,9 @@ GLSLEditorFactory::GLSLEditorFactory(QObject *parent)
}
-Core::IEditor *GLSLEditorFactory::createEditor(QWidget *parent)
+Core::IEditor *GLSLEditorFactory::createEditor()
{
- GLSLTextEditorWidget *rc = new GLSLTextEditorWidget(parent);
+ GLSLTextEditorWidget *rc = new GLSLTextEditorWidget();
TextEditor::TextEditorSettings::initializeEditor(rc);
return rc->editor();
}
diff --git a/src/plugins/glsleditor/glsleditorfactory.h b/src/plugins/glsleditor/glsleditorfactory.h
index d36f8d459a..01a507b748 100644
--- a/src/plugins/glsleditor/glsleditorfactory.h
+++ b/src/plugins/glsleditor/glsleditorfactory.h
@@ -42,7 +42,7 @@ class GLSLEditorFactory : public Core::IEditorFactory
public:
GLSLEditorFactory(QObject *parent);
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
private slots:
void updateEditorInfoBar(Core::IEditor *editor);
diff --git a/src/plugins/imageviewer/imageviewerfactory.cpp b/src/plugins/imageviewer/imageviewerfactory.cpp
index faced86d9e..c972823e07 100644
--- a/src/plugins/imageviewer/imageviewerfactory.cpp
+++ b/src/plugins/imageviewer/imageviewerfactory.cpp
@@ -85,9 +85,9 @@ ImageViewerFactory::~ImageViewerFactory()
delete d;
}
-Core::IEditor *ImageViewerFactory::createEditor(QWidget *parent)
+Core::IEditor *ImageViewerFactory::createEditor()
{
- return new ImageViewer(parent);
+ return new ImageViewer();
}
void ImageViewerFactory::extensionsInitialized()
diff --git a/src/plugins/imageviewer/imageviewerfactory.h b/src/plugins/imageviewer/imageviewerfactory.h
index fa61e9ec1e..b788fdc6e3 100644
--- a/src/plugins/imageviewer/imageviewerfactory.h
+++ b/src/plugins/imageviewer/imageviewerfactory.h
@@ -45,7 +45,7 @@ public:
explicit ImageViewerFactory(QObject *parent = 0);
~ImageViewerFactory();
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
void extensionsInitialized();
diff --git a/src/plugins/pythoneditor/pythoneditor.cpp b/src/plugins/pythoneditor/pythoneditor.cpp
index f327fd7e9e..26f9b5ffd0 100644
--- a/src/plugins/pythoneditor/pythoneditor.cpp
+++ b/src/plugins/pythoneditor/pythoneditor.cpp
@@ -58,9 +58,9 @@ PythonEditor::~PythonEditor()
{
}
-Core::IEditor *PythonEditor::duplicate(QWidget *parent)
+Core::IEditor *PythonEditor::duplicate()
{
- EditorWidget *widget = new EditorWidget(parent);
+ EditorWidget *widget = new EditorWidget();
widget->duplicateFrom(editorWidget());
TextEditor::TextEditorSettings::initializeEditor(widget);
diff --git a/src/plugins/pythoneditor/pythoneditor.h b/src/plugins/pythoneditor/pythoneditor.h
index ed1eff5e8e..a53d031abe 100644
--- a/src/plugins/pythoneditor/pythoneditor.h
+++ b/src/plugins/pythoneditor/pythoneditor.h
@@ -46,7 +46,7 @@ public:
virtual ~PythonEditor();
bool duplicateSupported() const { return true; }
- Core::IEditor *duplicate(QWidget *parent);
+ Core::IEditor *duplicate();
Core::Id id() const;
diff --git a/src/plugins/pythoneditor/pythoneditorfactory.cpp b/src/plugins/pythoneditor/pythoneditorfactory.cpp
index acf42d7f8a..c549646405 100644
--- a/src/plugins/pythoneditor/pythoneditorfactory.cpp
+++ b/src/plugins/pythoneditor/pythoneditorfactory.cpp
@@ -55,9 +55,9 @@ EditorFactory::EditorFactory(QObject *parent)
| TextEditor::TextEditorActionHandler::UnCollapseAll);
}
-Core::IEditor *EditorFactory::createEditor(QWidget *parent)
+Core::IEditor *EditorFactory::createEditor()
{
- EditorWidget *widget = new EditorWidget(parent);
+ EditorWidget *widget = new EditorWidget();
TextEditor::TextEditorSettings::initializeEditor(widget);
return widget->editor();
diff --git a/src/plugins/pythoneditor/pythoneditorfactory.h b/src/plugins/pythoneditor/pythoneditorfactory.h
index 0dcca8fbc2..50d8f925c1 100644
--- a/src/plugins/pythoneditor/pythoneditorfactory.h
+++ b/src/plugins/pythoneditor/pythoneditorfactory.h
@@ -45,7 +45,7 @@ public:
/**
Creates and initializes new editor widget
*/
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
};
} // namespace Internal
diff --git a/src/plugins/qmakeprojectmanager/profileeditor.cpp b/src/plugins/qmakeprojectmanager/profileeditor.cpp
index 1cbb4d839c..2e95155067 100644
--- a/src/plugins/qmakeprojectmanager/profileeditor.cpp
+++ b/src/plugins/qmakeprojectmanager/profileeditor.cpp
@@ -59,9 +59,10 @@ ProFileEditor::ProFileEditor(ProFileEditorWidget *editor)
TextEditor::Constants::C_TEXTEDITOR));
}
-Core::IEditor *ProFileEditor::duplicate(QWidget *parent)
+Core::IEditor *ProFileEditor::duplicate()
{
- ProFileEditorWidget *ret = new ProFileEditorWidget(parent, qobject_cast<ProFileEditorWidget*>(editorWidget())->factory());
+ ProFileEditorWidget *ret = new ProFileEditorWidget(
+ qobject_cast<ProFileEditorWidget*>(editorWidget())->factory());
ret->duplicateFrom(editorWidget());
TextEditor::TextEditorSettings::initializeEditor(ret);
return ret->editor();
@@ -81,7 +82,7 @@ TextEditor::CompletionAssistProvider *ProFileEditor::completionAssistProvider()
// ProFileEditorWidget
//
-ProFileEditorWidget::ProFileEditorWidget(QWidget *parent, ProFileEditorFactory *factory)
+ProFileEditorWidget::ProFileEditorWidget(ProFileEditorFactory *factory, QWidget *parent)
: BaseTextEditorWidget(parent), m_factory(factory)
{
QSharedPointer<ProFileDocument> doc(new ProFileDocument());
diff --git a/src/plugins/qmakeprojectmanager/profileeditor.h b/src/plugins/qmakeprojectmanager/profileeditor.h
index 3274e98105..f0ab2fcfe7 100644
--- a/src/plugins/qmakeprojectmanager/profileeditor.h
+++ b/src/plugins/qmakeprojectmanager/profileeditor.h
@@ -48,7 +48,7 @@ public:
ProFileEditor(ProFileEditorWidget *);
bool duplicateSupported() const { return true; }
- Core::IEditor *duplicate(QWidget *parent);
+ Core::IEditor *duplicate();
Core::Id id() const;
TextEditor::CompletionAssistProvider *completionAssistProvider();
};
@@ -58,7 +58,7 @@ class ProFileEditorWidget : public TextEditor::BaseTextEditorWidget
Q_OBJECT
public:
- ProFileEditorWidget(QWidget *parent, ProFileEditorFactory *factory);
+ ProFileEditorWidget(ProFileEditorFactory *factory, QWidget *parent = 0);
ProFileEditorFactory *factory() { return m_factory; }
diff --git a/src/plugins/qmakeprojectmanager/profileeditorfactory.cpp b/src/plugins/qmakeprojectmanager/profileeditorfactory.cpp
index 82a1a8905e..7ba617ce4e 100644
--- a/src/plugins/qmakeprojectmanager/profileeditorfactory.cpp
+++ b/src/plugins/qmakeprojectmanager/profileeditorfactory.cpp
@@ -60,9 +60,9 @@ ProFileEditorFactory::ProFileEditorFactory(QmakeManager *manager) :
Core::FileIconProvider::registerIconOverlayForSuffix(QtSupport::Constants::ICON_QT_PROJECT, "prf");
}
-Core::IEditor *ProFileEditorFactory::createEditor(QWidget *parent)
+Core::IEditor *ProFileEditorFactory::createEditor()
{
- ProFileEditorWidget *editor = new ProFileEditorWidget(parent, this);
+ ProFileEditorWidget *editor = new ProFileEditorWidget(this);
TextEditor::TextEditorSettings::initializeEditor(editor);
return editor->editor();
}
diff --git a/src/plugins/qmakeprojectmanager/profileeditorfactory.h b/src/plugins/qmakeprojectmanager/profileeditorfactory.h
index 0a805ade48..d42deadfbc 100644
--- a/src/plugins/qmakeprojectmanager/profileeditorfactory.h
+++ b/src/plugins/qmakeprojectmanager/profileeditorfactory.h
@@ -45,7 +45,7 @@ class ProFileEditorFactory : public Core::IEditorFactory
public:
ProFileEditorFactory(QmakeManager *parent);
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
QmakeManager *qmakeProjectManager() const { return m_manager; }
diff --git a/src/plugins/qmljseditor/qmljseditor.cpp b/src/plugins/qmljseditor/qmljseditor.cpp
index bcd2b642b2..061bf76054 100644
--- a/src/plugins/qmljseditor/qmljseditor.cpp
+++ b/src/plugins/qmljseditor/qmljseditor.cpp
@@ -581,9 +581,9 @@ QModelIndex QmlJSTextEditorWidget::outlineModelIndex()
return m_outlineModelIndex;
}
-IEditor *QmlJSEditor::duplicate(QWidget *parent)
+IEditor *QmlJSEditor::duplicate()
{
- QmlJSTextEditorWidget *newEditor = new QmlJSTextEditorWidget(parent);
+ QmlJSTextEditorWidget *newEditor = new QmlJSTextEditorWidget();
newEditor->duplicateFrom(editorWidget());
TextEditor::TextEditorSettings::initializeEditor(newEditor);
return newEditor->editor();
diff --git a/src/plugins/qmljseditor/qmljseditoreditable.h b/src/plugins/qmljseditor/qmljseditoreditable.h
index 98d05470f9..13cc7ff00a 100644
--- a/src/plugins/qmljseditor/qmljseditoreditable.h
+++ b/src/plugins/qmljseditor/qmljseditoreditable.h
@@ -45,7 +45,7 @@ public:
explicit QmlJSEditor(QmlJSTextEditorWidget *);
bool duplicateSupported() const { return true; }
- Core::IEditor *duplicate(QWidget *parent);
+ Core::IEditor *duplicate();
Core::Id id() const;
bool open(QString *errorString, const QString &fileName, const QString &realFileName);
bool isDesignModePreferred() const;
diff --git a/src/plugins/qmljseditor/qmljseditorfactory.cpp b/src/plugins/qmljseditor/qmljseditorfactory.cpp
index 5cba6ecb9b..f0bbfb9757 100644
--- a/src/plugins/qmljseditor/qmljseditorfactory.cpp
+++ b/src/plugins/qmljseditor/qmljseditorfactory.cpp
@@ -62,9 +62,9 @@ QmlJSEditorFactory::QmlJSEditorFactory(QObject *parent)
}
-Core::IEditor *QmlJSEditorFactory::createEditor(QWidget *parent)
+Core::IEditor *QmlJSEditorFactory::createEditor()
{
- QmlJSTextEditorWidget *rc = new QmlJSTextEditorWidget(parent);
+ QmlJSTextEditorWidget *rc = new QmlJSTextEditorWidget();
TextEditor::TextEditorSettings::initializeEditor(rc);
return rc->editor();
}
diff --git a/src/plugins/qmljseditor/qmljseditorfactory.h b/src/plugins/qmljseditor/qmljseditorfactory.h
index 8370f68a53..e8e047cd9b 100644
--- a/src/plugins/qmljseditor/qmljseditorfactory.h
+++ b/src/plugins/qmljseditor/qmljseditorfactory.h
@@ -42,7 +42,7 @@ class QmlJSEditorFactory : public Core::IEditorFactory
public:
QmlJSEditorFactory(QObject *parent);
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
};
} // namespace Internal
diff --git a/src/plugins/qnx/bardescriptoreditorfactory.cpp b/src/plugins/qnx/bardescriptoreditorfactory.cpp
index befa564bf0..529b6272c3 100644
--- a/src/plugins/qnx/bardescriptoreditorfactory.cpp
+++ b/src/plugins/qnx/bardescriptoreditorfactory.cpp
@@ -65,8 +65,8 @@ BarDescriptorEditorFactory::BarDescriptorEditorFactory(QObject *parent)
new BarDescriptorActionHandler(this);
}
-Core::IEditor *BarDescriptorEditorFactory::createEditor(QWidget *parent)
+Core::IEditor *BarDescriptorEditorFactory::createEditor()
{
- BarDescriptorEditorWidget *editorWidget = new BarDescriptorEditorWidget(parent);
+ BarDescriptorEditorWidget *editorWidget = new BarDescriptorEditorWidget();
return editorWidget->editor();
}
diff --git a/src/plugins/qnx/bardescriptoreditorfactory.h b/src/plugins/qnx/bardescriptoreditorfactory.h
index 9d4621ebc7..2edf3cf7c2 100644
--- a/src/plugins/qnx/bardescriptoreditorfactory.h
+++ b/src/plugins/qnx/bardescriptoreditorfactory.h
@@ -44,7 +44,7 @@ class BarDescriptorEditorFactory : public Core::IEditorFactory
public:
explicit BarDescriptorEditorFactory(QObject *parent = 0);
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
};
} // namespace Internal
diff --git a/src/plugins/qnx/bardescriptoreditorwidget.h b/src/plugins/qnx/bardescriptoreditorwidget.h
index ab089bbf05..f20cf40bc3 100644
--- a/src/plugins/qnx/bardescriptoreditorwidget.h
+++ b/src/plugins/qnx/bardescriptoreditorwidget.h
@@ -66,7 +66,7 @@ class BarDescriptorEditorWidget : public QStackedWidget
Q_OBJECT
public:
- explicit BarDescriptorEditorWidget(QWidget *parent);
+ explicit BarDescriptorEditorWidget(QWidget *parent = 0);
Core::IEditor *editor() const;
diff --git a/src/plugins/resourceeditor/resourceeditorfactory.cpp b/src/plugins/resourceeditor/resourceeditorfactory.cpp
index 6999022d4f..824aed6c20 100644
--- a/src/plugins/resourceeditor/resourceeditorfactory.cpp
+++ b/src/plugins/resourceeditor/resourceeditorfactory.cpp
@@ -53,8 +53,8 @@ ResourceEditorFactory::ResourceEditorFactory(ResourceEditorPlugin *plugin) :
Core::FileIconProvider::registerIconOverlayForSuffix(":/resourceeditor/images/qt_qrc.png", "qrc");
}
-Core::IEditor *ResourceEditorFactory::createEditor(QWidget *parent)
+Core::IEditor *ResourceEditorFactory::createEditor()
{
Core::Context context(ResourceEditor::Constants::C_RESOURCEEDITOR);
- return new ResourceEditorW(context, m_plugin, parent);
+ return new ResourceEditorW(context, m_plugin);
}
diff --git a/src/plugins/resourceeditor/resourceeditorfactory.h b/src/plugins/resourceeditor/resourceeditorfactory.h
index 26ae4ece1e..67cf83a840 100644
--- a/src/plugins/resourceeditor/resourceeditorfactory.h
+++ b/src/plugins/resourceeditor/resourceeditorfactory.h
@@ -47,7 +47,7 @@ class ResourceEditorFactory : public Core::IEditorFactory
public:
explicit ResourceEditorFactory(ResourceEditorPlugin *plugin);
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
private:
ResourceEditorPlugin *m_plugin;
diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp
index 7632efc87a..3907c42cc0 100644
--- a/src/plugins/texteditor/basetexteditor.cpp
+++ b/src/plugins/texteditor/basetexteditor.cpp
@@ -6302,7 +6302,7 @@ void BaseTextEditor::setFileEncodingLabelText(const QString &text)
QString BaseTextEditor::contextHelpId() const
{
if (m_contextHelpId.isEmpty())
- emit const_cast<BaseTextEditor*>(this)->contextHelpIdRequested(m_editorWidget->editor(),
+ emit const_cast<BaseTextEditor*>(this)->contextHelpIdRequested(const_cast<BaseTextEditor*>(this),
m_editorWidget->textCursor().position());
return m_contextHelpId;
}
diff --git a/src/plugins/texteditor/plaintexteditor.cpp b/src/plugins/texteditor/plaintexteditor.cpp
index 08f2076f77..4893aa2209 100644
--- a/src/plugins/texteditor/plaintexteditor.cpp
+++ b/src/plugins/texteditor/plaintexteditor.cpp
@@ -75,9 +75,9 @@ PlainTextEditorWidget::PlainTextEditorWidget(QWidget *parent)
connect(Manager::instance(), SIGNAL(mimeTypesRegistered()), this, SLOT(configure()));
}
-IEditor *PlainTextEditor::duplicate(QWidget *parent)
+IEditor *PlainTextEditor::duplicate()
{
- PlainTextEditorWidget *newWidget = new PlainTextEditorWidget(parent);
+ PlainTextEditorWidget *newWidget = new PlainTextEditorWidget();
newWidget->duplicateFrom(editorWidget());
TextEditorSettings::initializeEditor(newWidget);
return newWidget->editor();
diff --git a/src/plugins/texteditor/plaintexteditor.h b/src/plugins/texteditor/plaintexteditor.h
index d9f1452ab9..76909fc78c 100644
--- a/src/plugins/texteditor/plaintexteditor.h
+++ b/src/plugins/texteditor/plaintexteditor.h
@@ -50,7 +50,7 @@ public:
PlainTextEditor(PlainTextEditorWidget *);
bool duplicateSupported() const { return true; }
- Core::IEditor *duplicate(QWidget *parent);
+ Core::IEditor *duplicate();
Core::Id id() const;
};
@@ -59,7 +59,7 @@ class TEXTEDITOR_EXPORT PlainTextEditorWidget : public BaseTextEditorWidget
Q_OBJECT
public:
- PlainTextEditorWidget(QWidget *parent);
+ PlainTextEditorWidget(QWidget *parent = 0);
void configure(const QString& mimeType);
void configure(const Core::MimeType &mimeType);
diff --git a/src/plugins/texteditor/plaintexteditorfactory.cpp b/src/plugins/texteditor/plaintexteditorfactory.cpp
index f4836ce624..f57cf8c231 100644
--- a/src/plugins/texteditor/plaintexteditorfactory.cpp
+++ b/src/plugins/texteditor/plaintexteditorfactory.cpp
@@ -58,9 +58,9 @@ PlainTextEditorFactory::PlainTextEditorFactory(QObject *parent)
TextEditorActionHandler::UnCollapseAll);
}
-Core::IEditor *PlainTextEditorFactory::createEditor(QWidget *parent)
+Core::IEditor *PlainTextEditorFactory::createEditor()
{
- PlainTextEditorWidget *rc = new PlainTextEditorWidget(parent);
+ PlainTextEditorWidget *rc = new PlainTextEditorWidget();
TextEditorSettings::initializeEditor(rc);
connect(rc, SIGNAL(configured(Core::IEditor*)),
this, SLOT(updateEditorInfoBar(Core::IEditor*)));
diff --git a/src/plugins/texteditor/plaintexteditorfactory.h b/src/plugins/texteditor/plaintexteditorfactory.h
index e7c6b377fc..8633fc8949 100644
--- a/src/plugins/texteditor/plaintexteditorfactory.h
+++ b/src/plugins/texteditor/plaintexteditorfactory.h
@@ -45,7 +45,7 @@ public:
PlainTextEditorFactory(QObject *parent = 0);
using Core::IEditorFactory::addMimeType;
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
private slots:
void updateEditorInfoBar(Core::IEditor *editor);
diff --git a/src/plugins/texteditor/snippets/snippeteditor.h b/src/plugins/texteditor/snippets/snippeteditor.h
index 33229ef3d0..564eccaa78 100644
--- a/src/plugins/texteditor/snippets/snippeteditor.h
+++ b/src/plugins/texteditor/snippets/snippeteditor.h
@@ -49,7 +49,7 @@ public:
SnippetEditor(SnippetEditorWidget *editorWidget);
bool duplicateSupported() const { return false; }
- Core::IEditor *duplicate(QWidget * /* parent */ ) { return 0; }
+ Core::IEditor *duplicate() { return 0; }
Core::Id id() const;
};
diff --git a/src/plugins/vcsbase/basevcseditorfactory.cpp b/src/plugins/vcsbase/basevcseditorfactory.cpp
index 186d308860..346eed1043 100644
--- a/src/plugins/vcsbase/basevcseditorfactory.cpp
+++ b/src/plugins/vcsbase/basevcseditorfactory.cpp
@@ -77,9 +77,9 @@ BaseVcsEditorFactory::~BaseVcsEditorFactory()
delete d;
}
-Core::IEditor *BaseVcsEditorFactory::createEditor(QWidget *parent)
+Core::IEditor *BaseVcsEditorFactory::createEditor()
{
- VcsBaseEditorWidget *vcsEditor = createVcsBaseEditor(d->m_type, parent);
+ VcsBaseEditorWidget *vcsEditor = createVcsBaseEditor(d->m_type);
vcsEditor->setMimeType(mimeTypes().front());
diff --git a/src/plugins/vcsbase/basevcseditorfactory.h b/src/plugins/vcsbase/basevcseditorfactory.h
index a58cb20e43..d239b85e56 100644
--- a/src/plugins/vcsbase/basevcseditorfactory.h
+++ b/src/plugins/vcsbase/basevcseditorfactory.h
@@ -48,13 +48,13 @@ public:
explicit BaseVcsEditorFactory(const VcsBaseEditorParameters *type);
~BaseVcsEditorFactory();
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
private:
// Implement to create and initialize (call init()) a
// VcsBaseEditor subclass
virtual VcsBaseEditorWidget *createVcsBaseEditor(const VcsBaseEditorParameters *type,
- QWidget *parent) = 0;
+ QWidget *parent = 0) = 0;
Internal::BaseVcsEditorFactoryPrivate *const d;
};
@@ -70,7 +70,7 @@ public:
private:
VcsBaseEditorWidget *createVcsBaseEditor(const VcsBaseEditorParameters *type,
- QWidget *parent);
+ QWidget *parent = 0);
QObject *m_describeReceiver;
const char *m_describeSlot;
};
diff --git a/src/plugins/vcsbase/basevcssubmiteditorfactory.cpp b/src/plugins/vcsbase/basevcssubmiteditorfactory.cpp
index 15a1f1eb3d..08c265006c 100644
--- a/src/plugins/vcsbase/basevcssubmiteditorfactory.cpp
+++ b/src/plugins/vcsbase/basevcssubmiteditorfactory.cpp
@@ -44,9 +44,9 @@ BaseVcsSubmitEditorFactory::~BaseVcsSubmitEditorFactory()
{
}
-Core::IEditor *BaseVcsSubmitEditorFactory::createEditor(QWidget *parent)
+Core::IEditor *BaseVcsSubmitEditorFactory::createEditor()
{
- return createBaseSubmitEditor(m_parameters, parent);
+ return createBaseSubmitEditor(m_parameters);
}
} // namespace VcsBase
diff --git a/src/plugins/vcsbase/basevcssubmiteditorfactory.h b/src/plugins/vcsbase/basevcssubmiteditorfactory.h
index fa6dbff0bf..acf91cb3a4 100644
--- a/src/plugins/vcsbase/basevcssubmiteditorfactory.h
+++ b/src/plugins/vcsbase/basevcssubmiteditorfactory.h
@@ -50,12 +50,12 @@ protected:
~BaseVcsSubmitEditorFactory();
public:
- Core::IEditor *createEditor(QWidget *parent);
+ Core::IEditor *createEditor();
private:
virtual VcsBaseSubmitEditor
*createBaseSubmitEditor(const VcsBaseSubmitEditorParameters *parameters,
- QWidget *parent) = 0;
+ QWidget *parent = 0) = 0;
const VcsBaseSubmitEditorParameters *const m_parameters; // Not owned.
};
@@ -74,7 +74,7 @@ public:
private:
VcsBaseSubmitEditor *createBaseSubmitEditor
- (const VcsBaseSubmitEditorParameters *parameters, QWidget *parent)
+ (const VcsBaseSubmitEditorParameters *parameters, QWidget *parent = 0)
{
return new Editor(parameters, parent);
}