forked from qt-creator/qt-creator
CtfVisualizer: Convert to new standard plugin setup
Change-Id: Iaed31278cdbaf2933b325a3424d3c64e91f48d1c Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -1,26 +1,23 @@
|
||||
// Copyright (C) 2019 Klarälvdalens Datakonsult AB, a KDAB Group company,
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "ctfvisualizerplugin.h"
|
||||
|
||||
#include "ctfvisualizertool.h"
|
||||
|
||||
#include <extensionsystem/iplugin.h>
|
||||
|
||||
namespace CtfVisualizer::Internal {
|
||||
|
||||
class CtfVisualizerPluginPrivate
|
||||
class CtfVisualizerPlugin : public ExtensionSystem::IPlugin
|
||||
{
|
||||
public:
|
||||
CtfVisualizerTool profilerTool;
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "CtfVisualizer.json")
|
||||
|
||||
void initialize() final
|
||||
{
|
||||
setupCtfVisualizerTool();
|
||||
}
|
||||
};
|
||||
|
||||
CtfVisualizerPlugin::~CtfVisualizerPlugin()
|
||||
{
|
||||
delete d;
|
||||
}
|
||||
} // CtfVisualizer::Internal
|
||||
|
||||
void CtfVisualizerPlugin::initialize()
|
||||
{
|
||||
d = new CtfVisualizerPluginPrivate;
|
||||
}
|
||||
|
||||
} // namespace CtfVisualizer::Internal
|
||||
#include "ctfvisualizerplugin.moc"
|
||||
|
||||
Reference in New Issue
Block a user