10#include <QtDesigner/abstractformeditor.h>
11#include <QtDesigner/abstractformwindow.h>
13#include <QtCore/qplugin.h>
14#include <QtGui/qicon.h>
15#include <QtAxContainer/QAxWidget>
19using namespace Qt::StringLiterals;
28 return u"QAxWidget"_s;
33 return u"Containers"_s;
38 return tr(
"ActiveX control");
43 return tr(
"ActiveX control widget");
48 return u"qaxwidget.h"_s;
53 return QIcon(QDesignerAxWidget::widgetIcon());
64 const bool isFormEditor = parent !=
nullptr
65 && QDesignerFormWindowInterface::findFormWindow(parent) !=
nullptr;
74 return m_core !=
nullptr;
79 if (m_core !=
nullptr)
84 QExtensionManager *mgr = core->extensionManager();
85 ActiveXPropertySheetFactory::registerExtension(mgr);
86 ActiveXTaskMenuFactory::registerExtension(mgr, Q_TYPEID(QDesignerTaskMenuExtension));
88 mgr->registerExtensions(extraInfoFactory, Q_TYPEID(QDesignerExtraInfoExtension));
93 return QStringLiteral(R"(<ui language="c++">
94 <widget class="QAxWidget" name="axWidget">
95 <property name="geometry">
96 <rect>
97 <x>0</x>
98 <y>0</y>
99 <width>80</width>
100 <height>70</height>
101 </rect>
102 </property>
103 </widget>
104</ui>)");
Combined button and popup list for selecting options.