QDesignerActionEditor Class Reference

#include <qdesigner_actioneditor.h>

Inheritance diagram for QDesignerActionEditor:

Inheritance graph
[legend]
Collaboration diagram for QDesignerActionEditor:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 31 of file qdesigner_actioneditor.h.

Public Member Functions

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


Constructor & Destructor Documentation

QDesignerActionEditor::QDesignerActionEditor ( QDesignerWorkbench workbench  ) 

Definition at line 31 of file qdesigner_actioneditor.cpp.

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

00032     : QDesignerToolWindow(workbench)
00033 {
00034     setObjectName(QLatin1String("ActionEditor"));
00035     QDesignerActionEditorInterface *widget = QDesignerComponents::createActionEditor(workbench->core(), this);
00036     workbench->core()->setActionEditor(widget);
00037 
00038     setCentralWidget(widget);
00039 
00040     setWindowTitle(tr("Action Editor"));
00041 }

Here is the call graph for this function:

QDesignerActionEditor::~QDesignerActionEditor (  )  [virtual]

Definition at line 43 of file qdesigner_actioneditor.cpp.

00044 {
00045 }


Member Function Documentation

QRect QDesignerActionEditor::geometryHint (  )  const [virtual]

Reimplemented from QDesignerToolWindow.

Definition at line 47 of file qdesigner_actioneditor.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:14:43 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1