diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-06-16 15:06:58 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-06-16 15:06:58 (GMT) |
commit | e2451ba6eaac6c8050fd172405c1bf262d4e34d7 (patch) | |
tree | efd8bf1cfb6d35ac575ee498153757891ce99a0f /tools/designer/src/components | |
parent | b46e9371edfacd8ee65397292d667c5719a19aeb (diff) | |
download | Qt-e2451ba6eaac6c8050fd172405c1bf262d4e34d7.zip Qt-e2451ba6eaac6c8050fd172405c1bf262d4e34d7.tar.gz Qt-e2451ba6eaac6c8050fd172405c1bf262d4e34d7.tar.bz2 |
Store promoted Widgets correctly in the ScratchPad.
Add code to make promoted widget entries to widget DB to widget box
form builder.
Task-number: 233683
Diffstat (limited to 'tools/designer/src/components')
-rw-r--r-- | tools/designer/src/components/widgetbox/widgetbox_dnditem.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/designer/src/components/widgetbox/widgetbox_dnditem.cpp b/tools/designer/src/components/widgetbox/widgetbox_dnditem.cpp index 1dc63a5..60a176f 100644 --- a/tools/designer/src/components/widgetbox/widgetbox_dnditem.cpp +++ b/tools/designer/src/components/widgetbox/widgetbox_dnditem.cpp @@ -50,6 +50,7 @@ #include <formwindowbase_p.h> #include <qdesigner_utils_p.h> #include <qdesigner_dockwidget_p.h> +#include <qsimpleresource_p.h> #include <QtDesigner/QDesignerFormEditorInterface> #include <QtDesigner/QDesignerFormWindowManagerInterface> @@ -84,6 +85,7 @@ protected: virtual QWidget *create(DomWidget *ui_widget, QWidget *parents); virtual QWidget *createWidget(const QString &widgetName, QWidget *parentWidget, const QString &name); + virtual void createCustomWidgets(DomCustomWidgets *); }; WidgetBoxResource::WidgetBoxResource(QDesignerFormEditorInterface *core) : @@ -120,6 +122,14 @@ QWidget *WidgetBoxResource::create(DomWidget *ui_widget, QWidget *parent) return result; } +void WidgetBoxResource::createCustomWidgets(DomCustomWidgets *dc) +{ + // Make a promotion entry in case someone has a promoted widget + // in the scratchpad. + QSimpleResource::handleDomCustomWidgets(core(), dc); + +} + /******************************************************************************* ** WidgetBoxResource */ |