#include <default_actionprovider.h>
Inheritance diagram for qdesigner_internal::QDesignerActionProviderFactory:


Definition at line 62 of file default_actionprovider.h.
Public Member Functions | |
| QDesignerActionProviderFactory (QExtensionManager *parent=0) | |
Protected Member Functions | |
| virtual QObject * | createExtension (QObject *object, const QString &iid, QObject *parent) const |
| QDesignerActionProviderFactory::QDesignerActionProviderFactory | ( | QExtensionManager * | parent = 0 |
) |
Definition at line 131 of file default_actionprovider.cpp.
00132 : QExtensionFactory(parent) 00133 { 00134 }
| QObject * QDesignerActionProviderFactory::createExtension | ( | QObject * | object, | |
| const QString & | iid, | |||
| QObject * | parent | |||
| ) | const [protected, virtual] |
Creates an extension specified by iid for the given object. The extension object is created as a child of the specified parent.
Reimplemented from QExtensionFactory.
Definition at line 136 of file default_actionprovider.cpp.
References object, QObject::parent(), Q_TYPEID, and qobject_cast< QWidget * >().
00137 { 00138 if (iid != Q_TYPEID(QDesignerActionProviderExtension)) 00139 return 0; 00140 00141 if (qobject_cast<QMenu*>(object) 00142 || qobject_cast<QMenuBar*>(object) 00143 || qobject_cast<QToolBar*>(object)) 00144 return new QDesignerActionProvider(qobject_cast<QWidget*>(object), parent); 00145 00146 return 0; 00147 }
Here is the call graph for this function:

1.5.1