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 QList<IEditorFactory *> g_editorFactories;
|
||||||
static QHash<Utils::MimeType, IEditorFactory *> g_userPreferredEditorFactories;
|
static QHash<Utils::MimeType, IEditorFactory *> g_userPreferredEditorFactories;
|
||||||
|
|
||||||
IEditorFactory::IEditorFactory(QObject *parent)
|
IEditorFactory::IEditorFactory()
|
||||||
: QObject(parent)
|
|
||||||
{
|
{
|
||||||
g_editorFactories.append(this);
|
g_editorFactories.append(this);
|
||||||
}
|
}
|
||||||
|
@@ -47,7 +47,7 @@ class CORE_EXPORT IEditorFactory : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
IEditorFactory(QObject *parent = nullptr);
|
IEditorFactory();
|
||||||
~IEditorFactory() override;
|
~IEditorFactory() override;
|
||||||
|
|
||||||
static const EditorFactoryList allEditorFactories();
|
static const EditorFactoryList allEditorFactories();
|
||||||
|
@@ -43,9 +43,7 @@ const char DIFF_SELECTED[] = "Vcs.DiffSelectedFiles";
|
|||||||
VcsSubmitEditorFactory::VcsSubmitEditorFactory
|
VcsSubmitEditorFactory::VcsSubmitEditorFactory
|
||||||
(const VcsBaseSubmitEditorParameters ¶meters,
|
(const VcsBaseSubmitEditorParameters ¶meters,
|
||||||
const EditorCreator &editorCreator,
|
const EditorCreator &editorCreator,
|
||||||
VcsBasePluginPrivate *plugin,
|
VcsBasePluginPrivate *plugin)
|
||||||
QObject *parent)
|
|
||||||
: IEditorFactory(parent)
|
|
||||||
{
|
{
|
||||||
setId(parameters.id);
|
setId(parameters.id);
|
||||||
setDisplayName(QLatin1String(parameters.displayName));
|
setDisplayName(QLatin1String(parameters.displayName));
|
||||||
|
@@ -49,8 +49,7 @@ public:
|
|||||||
|
|
||||||
VcsSubmitEditorFactory(const VcsBaseSubmitEditorParameters ¶meters,
|
VcsSubmitEditorFactory(const VcsBaseSubmitEditorParameters ¶meters,
|
||||||
const EditorCreator &editorCreator,
|
const EditorCreator &editorCreator,
|
||||||
VcsBasePluginPrivate *plugin,
|
VcsBasePluginPrivate *plugin);
|
||||||
QObject *parent = nullptr);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QAction *m_submitAction = nullptr;
|
QAction *m_submitAction = nullptr;
|
||||||
|
Reference in New Issue
Block a user