Commit e2451ba6eaac6c8050fd172405c1bf262d4e34d7
- Diff rendering mode:
- inline
- side by side
tools/designer/src/components/widgetbox/widgetbox_dnditem.cpp
(10 / 0)
|   | |||
| 50 | 50 | #include <formwindowbase_p.h> | |
| 51 | 51 | #include <qdesigner_utils_p.h> | |
| 52 | 52 | #include <qdesigner_dockwidget_p.h> | |
| 53 | #include <qsimpleresource_p.h> | ||
| 53 | 54 | ||
| 54 | 55 | #include <QtDesigner/QDesignerFormEditorInterface> | |
| 55 | 56 | #include <QtDesigner/QDesignerFormWindowManagerInterface> | |
| … | … | ||
| 85 | 85 | ||
| 86 | 86 | virtual QWidget *create(DomWidget *ui_widget, QWidget *parents); | |
| 87 | 87 | virtual QWidget *createWidget(const QString &widgetName, QWidget *parentWidget, const QString &name); | |
| 88 | virtual void createCustomWidgets(DomCustomWidgets *); | ||
| 88 | 89 | }; | |
| 89 | 90 | ||
| 90 | 91 | WidgetBoxResource::WidgetBoxResource(QDesignerFormEditorInterface *core) : | |
| … | … | ||
| 120 | 120 | result->setFocusPolicy(Qt::NoFocus); | |
| 121 | 121 | result->setObjectName(ui_widget->attributeName()); | |
| 122 | 122 | return result; | |
| 123 | } | ||
| 124 | |||
| 125 | void WidgetBoxResource::createCustomWidgets(DomCustomWidgets *dc) | ||
| 126 | { | ||
| 127 | // Make a promotion entry in case someone has a promoted widget | ||
| 128 | // in the scratchpad. | ||
| 129 | QSimpleResource::handleDomCustomWidgets(core(), dc); | ||
| 130 | |||
| 123 | 131 | } | |
| 124 | 132 | ||
| 125 | 133 | /******************************************************************************* |
Comments
Add a new comment:
Login or create an account to post a comment
Add your comment
Please log in to comment

