QmlDesigner: Make the taking of ownership clean for the register functions

Change-Id: Ibb9b054f49a04be65d16e8a55c45ee6524d39729
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Marco Bubke
2013-04-17 12:37:17 +02:00
parent 58e280de2c
commit de7a4818a9
2 changed files with 4 additions and 4 deletions

View File

@@ -71,8 +71,8 @@ public:
void resetPropertyEditorView();
void registerFormEditorTool(AbstractCustomTool *tool); // takes ownership
void registerView(AbstractView *view);
void registerFormEditorToolTakingOwnership(AbstractCustomTool *tool);
void registerViewTakingOwnership(AbstractView *view);
QList<WidgetInfo> widgetInfos();

View File

@@ -89,12 +89,12 @@ void ViewManager::resetPropertyEditorView()
m_propertyEditorView.resetView();
}
void ViewManager::registerFormEditorTool(AbstractCustomTool *tool)
void ViewManager::registerFormEditorToolTakingOwnership(AbstractCustomTool *tool)
{
m_formEditorView.registerTool(tool);
}
void ViewManager::registerView(AbstractView *view)
void ViewManager::registerViewTakingOwnership(AbstractView *view)
{
m_additionalViews.append(view);
}