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:
hjk
2020-02-06 08:38:54 +01:00
parent ca89d1b8a6
commit 90f2f4b1dc
4 changed files with 18 additions and 4 deletions

View File

@@ -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;
}