qdesigner_internal::QMainWindowContainerFactory Class Reference

#include <qmainwindow_container.h>

Inheritance diagram for qdesigner_internal::QMainWindowContainerFactory:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 54 of file qmainwindow_container.h.

Public Member Functions

 QMainWindowContainerFactory (QExtensionManager *parent=0)

Protected Member Functions

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


Constructor & Destructor Documentation

QMainWindowContainerFactory::QMainWindowContainerFactory ( QExtensionManager parent = 0  ) 

Definition at line 177 of file qmainwindow_container.cpp.

00178     : QExtensionFactory(parent)
00179 {
00180 }


Member Function Documentation

QObject * QMainWindowContainerFactory::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 182 of file qmainwindow_container.cpp.

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

00183 {
00184     if (iid != Q_TYPEID(QDesignerContainerExtension))
00185         return 0;
00186 
00187     if (QMainWindow *w = qobject_cast<QMainWindow*>(object))
00188         return new QMainWindowContainer(w, parent);
00189 
00190     return 0;
00191 }

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