mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
fix static designer plugins actions initialization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
4670a0f0de
commit
a98aa46aed
1 changed files with 3 additions and 1 deletions
|
@ -52,6 +52,7 @@
|
|||
#include "codedialog_p.h"
|
||||
#include "qdesigner_formwindowmanager_p.h"
|
||||
#include "qdesigner_integration_p.h"
|
||||
#include "qdesigner_components.h"
|
||||
|
||||
// sdk
|
||||
#include "abstractformeditor.h"
|
||||
|
@ -340,7 +341,8 @@ QDesignerActions::QDesignerActions(QDesignerWorkbench *workbench)
|
|||
connect(formWindowManager, SIGNAL(activeFormWindowChanged(QDesignerFormWindowInterface*)),
|
||||
this, SLOT(activeFormWindowChanged(QDesignerFormWindowInterface*)));
|
||||
|
||||
QList<QObject*> builtinPlugins = m_core->pluginManager()->instances();
|
||||
QList<QObject*> builtinPlugins = QDesignerComponents::initializePlugins(m_core);
|
||||
m_core->pluginManager()->ensureInitializedStatic(builtinPlugins);
|
||||
foreach (QObject *plugin, builtinPlugins) {
|
||||
if (QDesignerFormEditorPluginInterface *formEditorPlugin = qobject_cast<QDesignerFormEditorPluginInterface*>(plugin)) {
|
||||
if (QAction *action = formEditorPlugin->action()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue