Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
tools_designer_src_lib_extension_qextensionmanager.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3// Qt-Security score:significant reason:default
4
5//! [0]
6 void MyPlugin::initialize(QDesignerFormEditorInterface *formEditor)
7 {
8 if (initialized)
9 return;
10
11 auto *manager = formEditor->extensionManager();
12 Q_ASSERT(manager != nullptr);
13
14 manager->registerExtensions(new MyExtensionFactory(manager),
15 Q_TYPEID(QDesignerTaskMenuExtension));
16
17 initialized = true;
18 }
19//! [0]