forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user