QDesignerObjectInspector Class Reference

#include <qdesigner_objectinspector.h>

Inheritance diagram for QDesignerObjectInspector:

Inheritance graph
[legend]
Collaboration diagram for QDesignerObjectInspector:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 31 of file qdesigner_objectinspector.h.

Public Member Functions

 QDesignerObjectInspector (QDesignerWorkbench *workbench)
virtual ~QDesignerObjectInspector ()
virtual QRect geometryHint () const


Constructor & Destructor Documentation

QDesignerObjectInspector::QDesignerObjectInspector ( QDesignerWorkbench workbench  ) 

Definition at line 31 of file qdesigner_objectinspector.cpp.

References QDesignerWorkbench::core(), QDesignerComponents::createObjectInspector(), QMainWindow::setCentralWidget(), QDesignerFormEditorInterface::setObjectInspector(), QObject::setObjectName(), QWidget::setWindowTitle(), and QDesignerToolWindow::workbench().

00032     : QDesignerToolWindow(workbench)
00033 {
00034     setObjectName(QLatin1String("ObjectInspector"));
00035     QDesignerObjectInspectorInterface *widget = QDesignerComponents::createObjectInspector(workbench->core(), this);
00036     workbench->core()->setObjectInspector(widget);
00037 
00038     setCentralWidget(widget);
00039 
00040     setWindowTitle(tr("Object Inspector"));
00041 }

Here is the call graph for this function:

QDesignerObjectInspector::~QDesignerObjectInspector (  )  [virtual]

Definition at line 43 of file qdesigner_objectinspector.cpp.

00044 {
00045 }


Member Function Documentation

QRect QDesignerObjectInspector::geometryHint (  )  const [virtual]

Reimplemented from QDesignerToolWindow.

Definition at line 47 of file qdesigner_objectinspector.cpp.

References QDesignerWorkbench::availableGeometry(), g, QDesignerWorkbench::marginHint(), and QDesignerToolWindow::workbench().

00048 {
00049     QRect g = workbench()->availableGeometry();
00050     int margin = workbench()->marginHint();
00051 
00052     QSize sz(g.width() * 1/4, g.height() * 1/6);
00053 
00054     return QRect((g.width() - sz.width() - margin), margin,
00055                   sz.width(), sz.height());
00056 }

Here is the call graph for this function:


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