<class name="QFocusFrame" doc="/** <p>The <a href="QFocusFrame.html#QFocusFrame(com.trolltech.qt.gui.QWidget)"><tt>QFocusFrame</tt></a> widget provides a focus frame which can be outside of a widget's normal paintable area.</p> <p>Normally an application will not need to create its own <a href="QFocusFrame.html#QFocusFrame(com.trolltech.qt.gui.QWidget)"><tt>QFocusFrame</tt></a> as <a href="QStyle.html"><tt>QStyle</tt></a> will handle this detail for you. A style writer can optionally use a <a href="QFocusFrame.html#QFocusFrame(com.trolltech.qt.gui.QWidget)"><tt>QFocusFrame</tt></a> to have a focus area outside of the widget's paintable geometry. In this way space need not be reserved for the widget to have focus but only set on a <a href="QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)"><tt>QWidget</tt></a> with QFocusFrame::setWidget. It is, however, legal to create your own <a href="QFocusFrame.html#QFocusFrame(com.trolltech.qt.gui.QWidget)"><tt>QFocusFrame</tt></a> on a custom widget and set its geometry manually via QWidget::setGeometry however you will not get auto-placement when the focused widget changes size or placement.</p> */"> <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/** <p>This signal is emitted when the widget's <a href="QWidget.html#contextMenuPolicy()"><tt>contextMenuPolicy</tt></a> is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position <tt>pos</tt> is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is <a href="QAbstractScrollArea.html"><tt>QAbstractScrollArea</tt></a> and its subclasses that map the context menu event to coordinates of the viewport()</tt> .</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QPoint pos)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)"><tt>mapToGlobal</tt></a>, <a href="QMenu.html"><tt>QMenu</tt></a>, <a href="QWidget.html#contextMenuPolicy()"><tt>contextMenuPolicy</tt></a></dd> </dl> */"/> <method name="public QFocusFrame(com.trolltech.qt.gui.QWidget parent)" doc="/** <p>Constructs a <a href="QFocusFrame.html#QFocusFrame(com.trolltech.qt.gui.QWidget)"><tt>QFocusFrame</tt></a>.</p> <p>The focus frame will not monitor <tt>parent</tt> for updates but rather can be placed manually or by using QFocusFrame::setWidget. A <a href="QFocusFrame.html#QFocusFrame(com.trolltech.qt.gui.QWidget)"><tt>QFocusFrame</tt></a> sets Qt::WA_NoChildEventsForParent attribute; as a result the parent will not receive a QEvent::ChildInserted event, this will make it possible to manually set the geometry of the <a href="QFocusFrame.html#QFocusFrame(com.trolltech.qt.gui.QWidget)"><tt>QFocusFrame</tt></a> inside of a <a href="QSplitter.html"><tt>QSplitter</tt></a> or other child event monitoring widget.</p> @see <tt>QFocusFrame::setWidget</tt> */"/> <method name="public QFocusFrame()" doc="/** <p>Equivalent to <a href="QFocusFrame.html#QFocusFrame(com.trolltech.qt.gui.QWidget)"><tt>QFocusFrame</tt></a>(0). */"/> <method name="public final void setWidget(com.trolltech.qt.gui.QWidget widget)" doc="/** <p><a href="QFocusFrame.html#QFocusFrame(com.trolltech.qt.gui.QWidget)"><tt>QFocusFrame</tt></a> will track changes to <tt>widget</tt> and resize itself automatically. If the monitored widget's parent changes, <a href="QFocusFrame.html#QFocusFrame(com.trolltech.qt.gui.QWidget)"><tt>QFocusFrame</tt></a> will follow the widget and place itself around the widget automatically. If the monitored widget is deleted, <a href="QFocusFrame.html#QFocusFrame(com.trolltech.qt.gui.QWidget)"><tt>QFocusFrame</tt></a> will set it to zero.</p> @see <tt>QFocusFrame::widget</tt> */"/> <method name="public final com.trolltech.qt.gui.QWidget widget()" doc="/** <p>Returns the currently monitored widget for automatically resize and update.</p> @see <tt>QFocusFrame::setWidget</tt> */"/> <method name="public boolean event(com.trolltech.qt.core.QEvent e)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public boolean eventFilter(com.trolltech.qt.core.QObject arg__1, com.trolltech.qt.core.QEvent arg__2)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected void paintEvent(com.trolltech.qt.gui.QPaintEvent arg__1)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> </class>