Commit a4cfb139 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: compile fix for Windows

QScopedPointer on unknown class does not work if parent class
is exported.

Change-Id: I88ad98cbd3b93256aa30895787ec805955c5e98b
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 0f25f0c8
......@@ -221,7 +221,7 @@ QList<AbstractDesignerAction* > DesignerActionManager::designerActions()
QmlModelView *DesignerActionManager::view()
{
return instance()->m_view.data();
return instance()->m_view;
}
class VisiblityModelNodeAction : public ModelNodeAction
......@@ -436,4 +436,9 @@ DesignerActionManager::DesignerActionManager() : m_view(new Internal::DesignerAc
{
}
DesignerActionManager::~DesignerActionManager()
{
delete m_view;
}
} //QmlDesigner
......@@ -55,11 +55,12 @@ protected:
void addDesignerActionInternal(AbstractDesignerAction *newAction);
QList<AbstractDesignerAction* > factoriesInternal() const;
DesignerActionManager();
~DesignerActionManager();
private:
static DesignerActionManager *m_instance;
QList<QSharedPointer<AbstractDesignerAction> > m_designerActions;
QScopedPointer<Internal::DesignerActionManagerView> m_view;
Internal::DesignerActionManagerView *m_view;
};
} //QmlDesigner
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment