Files
qt-creator/src/plugins/scxmleditor/scxmleditorplugin.cpp
hjk 118b84ffd6 Use simpler Plugin::initialize() when feasible
Change-Id: I567965d266f20526bda9f823e31a04b354d53fb1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-01-20 12:13:10 +00:00

38 lines
657 B
C++

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "scxmleditorplugin.h"
#include "scxmleditorfactory.h"
#include <coreplugin/designmode.h>
using namespace Core;
namespace ScxmlEditor {
namespace Internal {
class ScxmlEditorPluginPrivate
{
public:
ScxmlEditorFactory editorFactory;
};
ScxmlEditorPlugin::~ScxmlEditorPlugin()
{
delete d;
}
void ScxmlEditorPlugin::initialize()
{
d = new ScxmlEditorPluginPrivate;
}
void ScxmlEditorPlugin::extensionsInitialized()
{
DesignMode::setDesignModeIsRequired();
}
} // Internal
} // ScxmlEditor