forked from qt-creator/qt-creator
Core: Remove QObject parent for IEditorFactory
Change-Id: I0b2088c56a86b8c68bbb355d367d062475685063 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -37,8 +37,7 @@ namespace Core {
|
||||
static QList<IEditorFactory *> g_editorFactories;
|
||||
static QHash<Utils::MimeType, IEditorFactory *> g_userPreferredEditorFactories;
|
||||
|
||||
IEditorFactory::IEditorFactory(QObject *parent)
|
||||
: QObject(parent)
|
||||
IEditorFactory::IEditorFactory()
|
||||
{
|
||||
g_editorFactories.append(this);
|
||||
}
|
||||
|
@@ -47,7 +47,7 @@ class CORE_EXPORT IEditorFactory : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
IEditorFactory(QObject *parent = nullptr);
|
||||
IEditorFactory();
|
||||
~IEditorFactory() override;
|
||||
|
||||
static const EditorFactoryList allEditorFactories();
|
||||
|
@@ -43,9 +43,7 @@ const char DIFF_SELECTED[] = "Vcs.DiffSelectedFiles";
|
||||
VcsSubmitEditorFactory::VcsSubmitEditorFactory
|
||||
(const VcsBaseSubmitEditorParameters ¶meters,
|
||||
const EditorCreator &editorCreator,
|
||||
VcsBasePluginPrivate *plugin,
|
||||
QObject *parent)
|
||||
: IEditorFactory(parent)
|
||||
VcsBasePluginPrivate *plugin)
|
||||
{
|
||||
setId(parameters.id);
|
||||
setDisplayName(QLatin1String(parameters.displayName));
|
||||
|
@@ -49,8 +49,7 @@ public:
|
||||
|
||||
VcsSubmitEditorFactory(const VcsBaseSubmitEditorParameters ¶meters,
|
||||
const EditorCreator &editorCreator,
|
||||
VcsBasePluginPrivate *plugin,
|
||||
QObject *parent = nullptr);
|
||||
VcsBasePluginPrivate *plugin);
|
||||
|
||||
private:
|
||||
QAction *m_submitAction = nullptr;
|
||||
|
Reference in New Issue
Block a user