forked from qt-creator/qt-creator
ScxmlEditor: Pimpl plugin
No direct advantage locally, but gets rid of one QObject parent use of IEditorFactory. Change-Id: I15611e96d0e6a38ee2c301cb6ba7387ad207265d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "scxmleditorplugin.h"
|
||||
|
||||
#include "scxmleditorfactory.h"
|
||||
|
||||
#include <coreplugin/designmode.h>
|
||||
@@ -33,12 +34,23 @@ using namespace Core;
|
||||
namespace ScxmlEditor {
|
||||
namespace Internal {
|
||||
|
||||
class ScxmlEditorPluginPrivate
|
||||
{
|
||||
public:
|
||||
ScxmlEditorFactory editorFactory;
|
||||
};
|
||||
|
||||
ScxmlEditorPlugin::~ScxmlEditorPlugin()
|
||||
{
|
||||
delete d;
|
||||
}
|
||||
|
||||
bool ScxmlEditorPlugin::initialize(const QStringList &arguments, QString *errorString)
|
||||
{
|
||||
Q_UNUSED(arguments)
|
||||
Q_UNUSED(errorString)
|
||||
|
||||
(void) new ScxmlEditorFactory(this);
|
||||
d = new ScxmlEditorPluginPrivate;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user