qdesigner_internal::QDesignerContainerFactory Class Reference

#include <default_container.h>

Inheritance diagram for qdesigner_internal::QDesignerContainerFactory:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 55 of file default_container.h.

Public Member Functions

 QDesignerContainerFactory (QExtensionManager *parent=0)

Protected Member Functions

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


Constructor & Destructor Documentation

QDesignerContainerFactory::QDesignerContainerFactory ( QExtensionManager parent = 0  ) 

Definition at line 135 of file default_container.cpp.

00136     : QExtensionFactory(parent)
00137 {
00138 }


Member Function Documentation

QObject * QDesignerContainerFactory::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 140 of file default_container.cpp.

References object, QObject::parent(), and Q_TYPEID.

00141 {
00142     if (iid != Q_TYPEID(QDesignerContainerExtension))
00143         return 0;
00144 
00145     if (qobject_cast<QDesignerStackedWidget*>(object)
00146             || qobject_cast<QDesignerTabWidget*>(object)
00147             || qobject_cast<QDesignerToolBox*>(object))
00148         return new QDesignerContainer(static_cast<QWidget*>(object), parent);
00149 
00150     return 0;
00151 }

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:16 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1