diff options
author | Eike Ziller <eike.ziller@qt.io> | 2021-08-23 15:29:28 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2021-08-24 09:34:27 +0000 |
commit | e017eaa3fdea94f1df55005c30ef6262be144fde (patch) | |
tree | f7ccb22a90a42238158420e7c79bdcd48d93cdca /doc/qtcreatordev/examples/exampleplugin/example.h | |
parent | c6483a33bd512ea6424ea4e80a48d6b007525f2a (diff) | |
download | qt-creator-e017eaa3fdea94f1df55005c30ef6262be144fde.tar.gz |
Doc: Update information about Qt Creator plugin wizard
After the switch to CMake.
Extends 29f3be1a6e236a199514a4edeeddb07322d70df4
Change-Id: I626bc7393d290710d7e5d1f2907e6fa1f25a7d21
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'doc/qtcreatordev/examples/exampleplugin/example.h')
-rw-r--r-- | doc/qtcreatordev/examples/exampleplugin/example.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/qtcreatordev/examples/exampleplugin/example.h b/doc/qtcreatordev/examples/exampleplugin/example.h new file mode 100644 index 0000000000..e858e92180 --- /dev/null +++ b/doc/qtcreatordev/examples/exampleplugin/example.h @@ -0,0 +1,36 @@ +#pragma once + +#include "example_global.h" + +#include <extensionsystem/iplugin.h> + +//! [namespaces] +namespace Example { +namespace Internal { +//! [namespaces] + +//! [base class] +class ExamplePlugin : public ExtensionSystem::IPlugin +{ + Q_OBJECT + Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Example.json") +//! [base class] + +public: + ExamplePlugin(); + ~ExamplePlugin(); + +//! [plugin functions] + bool initialize(const QStringList &arguments, QString *errorString); + void extensionsInitialized(); + ShutdownFlag aboutToShutdown(); +//! [plugin functions] + +//! [slot] +private: + void triggerAction(); +//! [slot] +}; + +} // namespace Internal +} // namespace Example |