Commit d7cf3db3 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: export DesignerActionManager



Change-Id: Id2ac1ab6e1c9693f2168bc0adf54bb7d67ce02ce
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
(cherry picked from commit ac438afc)
parent 3eb65729
......@@ -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
......@@ -30,6 +30,7 @@
#ifndef DESIGNERACTIONMANAGER_H
#define DESIGNERACTIONMANAGER_H
#include <qmldesignercorelib_global.h>
#include "abstractdesigneraction.h"
#include "qmlmodelview.h"
......@@ -41,7 +42,7 @@ namespace Internal {
class DesignerActionManagerView;
}
class DesignerActionManager {
class QMLDESIGNERCORE_EXPORT DesignerActionManager {
public:
static void addDesignerAction(AbstractDesignerAction *newAction);
static QList<AbstractDesignerAction* > designerActions();
......@@ -54,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