qdesigner_internal::QDesignerActionProviderFactory Class Reference

#include <default_actionprovider.h>

Inheritance diagram for qdesigner_internal::QDesignerActionProviderFactory:

Inheritance graph
[legend]
Collaboration diagram for qdesigner_internal::QDesignerActionProviderFactory:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 62 of file default_actionprovider.h.

Public Member Functions

 QDesignerActionProviderFactory (QExtensionManager *parent=0)

Protected Member Functions

virtual QObjectcreateExtension (QObject *object, const QString &iid, QObject *parent) const


Constructor & Destructor Documentation

QDesignerActionProviderFactory::QDesignerActionProviderFactory ( QExtensionManager parent = 0  ) 

Definition at line 131 of file default_actionprovider.cpp.

00132     : QExtensionFactory(parent)
00133 {
00134 }


Member Function Documentation

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.

See also:
extension()

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:


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 20:23:09 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1