summaryrefslogtreecommitdiffstats
path: root/examples/plugin/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/plugin/plugin.cpp')
-rw-r--r--examples/plugin/plugin.cpp35
1 files changed, 1 insertions, 34 deletions
diff --git a/examples/plugin/plugin.cpp b/examples/plugin/plugin.cpp
index f405298..bc1f9d2 100644
--- a/examples/plugin/plugin.cpp
+++ b/examples/plugin/plugin.cpp
@@ -7,45 +7,12 @@
QT_BEGIN_NAMESPACE_PROCESSMANAGER
-/*!
- \qmlclass Manager DeclarativeProcessManager
- \inqmlmodule ProcessManager 1
- \brief The Manager element controls running processes.
-
- Only a single DeclarativeProcessManager class should be loaded at one time.
-
- Typical use of the ProcessManager class is as follows:
-
- \code
- import QtQuick 2.0
- import ProcessManager 1.0
-
- Manager {
- id: myProcessManager
-
- factories: [
- GdbProcessBackendFactory {},
- StandardProcessBackendFactory {}
- ]
- }
- \endcode
-*/
-
-/*!
- \qmlproperty list ProcessManager::Manager::factories
- \brief The factories assigned to this process manager
-
- The factories property is an ordered list of ProcessBackendFactory objects.
-*/
-
-
class ProcessManagerPlugin : public QQmlExtensionPlugin
{
Q_OBJECT
public:
void registerTypes(const char *uri) {
- qmlRegisterType<ProcessInfoTemplate>(uri, 1, 0, "ProcessInfoTemplate");
- qmlRegisterType<DeclarativeProcessManager>(uri, 1, 0, "Manager");
+ DeclarativeProcessManager::registerTypes(uri);
}
void initializeEngine(QQmlEngine *engine, const char *uri) {