Files
qt-creator/share/qtcreator/templates/wizards/qtcreatorplugin/myplugin.h
hjk 3fa4fa5cf3 Wizards: Use simpler init() signature in the Creator Plugin template
This is the most common case by far. Also add a hint for special needs.

Change-Id: Ib4d708d90a3b2dd91d18fa53c3fb597304145697
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2023-08-17 11:56:35 +00:00

27 lines
517 B
C++

#pragma once
#include "%{GlobalHdrFileName}"
#include <extensionsystem/iplugin.h>
namespace %{PluginName}::Internal {
class %{CN} : public ExtensionSystem::IPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "%{PluginName}.json")
public:
%{CN}();
~%{CN}() override;
void initialize() override;
void extensionsInitialized() override;
ShutdownFlag aboutToShutdown() override;
private:
void triggerAction();
};
} // namespace %{PluginName}::Internal