![]() |
Qt 6.x
The Qt SDK
|
#include <qgraphicsproxywidget_p.h>
Public Types | |
enum | ChangeMode { NoMode , ProxyToWidgetMode , WidgetToProxyMode } |
![]() | |
enum | Extra { ExtraToolTip , ExtraCursor , ExtraCacheData , ExtraMaxDeviceCoordCacheSize , ExtraBoundingRegionGranularity } |
enum | AncestorFlag { NoFlag = 0 , AncestorHandlesChildEvents = 0x1 , AncestorClipsChildren = 0x2 , AncestorIgnoresTransformations = 0x4 , AncestorFiltersChildEvents = 0x8 , AncestorContainsChildren = 0x10 } |
Additional Inherited Members | |
![]() | |
static const QGraphicsItemPrivate * | get (const QGraphicsItem *item) |
static QGraphicsItemPrivate * | get (QGraphicsItem *item) |
static bool | movableAncestorIsSelected (const QGraphicsItem *item) |
static bool | isOpacityNull (qreal opacity) |
static bool | insertionOrder (QGraphicsItem *a, QGraphicsItem *b) |
Definition at line 26 of file qgraphicsproxywidget_p.h.
Enumerator | |
---|---|
NoMode | |
ProxyToWidgetMode | |
WidgetToProxyMode |
Definition at line 62 of file qgraphicsproxywidget_p.h.
QGraphicsProxyWidgetPrivate::QGraphicsProxyWidgetPrivate | ( | ) |
Definition at line 163 of file qgraphicsproxywidget.cpp.
QGraphicsProxyWidgetPrivate::~QGraphicsProxyWidgetPrivate | ( | ) |
Definition at line 181 of file qgraphicsproxywidget.cpp.
void QGraphicsProxyWidgetPrivate::_q_removeWidgetSlot | ( | ) |
Definition at line 371 of file qgraphicsproxywidget.cpp.
References QGraphicsItemPrivate::extra(), QPointer< T >::isNull(), and widget.
Referenced by setWidget_helper().
Embeds subWin as a subwindow of this proxy widget. subWin must be a top-level widget and a descendant of the widget managed by this proxy. A separate subproxy will be created as a child of this proxy widget to manage subWin.
Definition at line 446 of file qgraphicsproxywidget.cpp.
References QGraphicsItemPrivate::extra(), and QWidget::windowFlags().
Some of the logic is shared with QApplicationPrivate::focusNextPrevChild_helper
Definition at line 336 of file qgraphicsproxywidget.cpp.
References child, next, qt_tab_all_widgets(), Qt::StrongFocus, Qt::TabFocus, and widget.
void QGraphicsProxyWidgetPrivate::init | ( | ) |
Definition at line 188 of file qgraphicsproxywidget.cpp.
References Qt::WheelFocus.
|
overridevirtual |
Tells us if it is a proxy widget
Reimplemented from QGraphicsItemPrivate.
Definition at line 478 of file qgraphicsproxywidget.cpp.
QPointF QGraphicsProxyWidgetPrivate::mapToReceiver | ( | const QPointF & | pos, |
const QWidget * | receiver | ||
) | const |
Definition at line 486 of file qgraphicsproxywidget.cpp.
References QWidget::parentWidget(), QGraphicsItemPrivate::pos, QWidget::pos, and widget.
Referenced by sendWidgetMouseEvent().
void QGraphicsProxyWidgetPrivate::removeSubFocusHelper | ( | QWidget * | widget, |
Qt::FocusReason | reason | ||
) |
Definition at line 323 of file qgraphicsproxywidget.cpp.
References QEvent::FocusOut, QCoreApplication::sendEvent(), QWidget::style(), and widget.
Definition at line 301 of file qgraphicsproxywidget.cpp.
References QWidget::focusWidget(), QWidget::isVisible(), Q_ASSERT, QCoreApplication::sendEvent(), and widget.
void QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent | ( | QGraphicsSceneHoverEvent * | event | ) |
Definition at line 198 of file qgraphicsproxywidget.cpp.
References QEvent::GraphicsSceneMouseMove, QEvent::isAccepted(), Qt::NoButton, sendWidgetMouseEvent(), QGraphicsSceneMouseEvent::setButton(), QGraphicsSceneMouseEvent::setButtons(), QGraphicsSceneMouseEvent::setModifiers(), QGraphicsSceneMouseEvent::setPos(), QGraphicsSceneMouseEvent::setScreenPos(), and QGraphicsSceneEvent::setTimestamp().
void QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 214 of file qgraphicsproxywidget.cpp.
References QWidget::childAt(), QApplicationPrivate::dispatchEnterLeave(), embeddedMouseGrabber, QEvent::GraphicsSceneMouseDoubleClick, QEvent::GraphicsSceneMouseMove, QEvent::GraphicsSceneMousePress, QEvent::GraphicsSceneMouseRelease, QEvent::isAccepted(), QWidget::isVisible(), lastWidgetUnderMouse, mapToReceiver(), QEvent::MouseButtonDblClick, QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseMove, QEvent::None, QGraphicsItemPrivate::pos, Q_ASSERT_X, QApplicationPrivate::sendMouseEvent(), QPointerEvent::setTimestamp(), QPointF::toPoint(), QWidget::unsetCursor(), and widget.
Referenced by sendWidgetMouseEvent().
Definition at line 560 of file qgraphicsproxywidget.cpp.
References _q_removeWidgetSlot(), QWidget::adjustSize(), child, QObject::connect(), QWidget::contentsMargins(), QWidget::cursor, QObject::disconnect(), enabledChangeMode, QWidget::ensurePolished(), QGraphicsItemPrivate::extra(), QGraphicsWidgetPrivate::inheritedFontResolveMask, QGraphicsWidgetPrivate::inheritedPaletteResolveMask, QObject::installEventFilter(), QWidget::isEnabled(), QSize::isNull(), QWidget::isVisible(), QWidget::isWindow(), QWidget::layoutDirection, QWidget::maximumSize, QWidget::minimumSize, NoMode, QGraphicsItemPrivate::parent, QGraphicsItem::parentWidget(), QWidget::parentWidget(), posChangeMode, qWarning, QObject::removeEventFilter(), QGraphicsWidgetPrivate::resolveFont(), QGraphicsWidgetPrivate::resolvePalette(), QWidget::setAttribute(), QGraphicsProxyWidget::setWidget(), QWidget::show(), SIGNAL, sizeChangeMode, QWidget::sizePolicy, SLOT, QWidget::style(), QWidget::testAttribute(), QWidget::unsetCursor(), QWidget::update(), updateProxyGeometryFromWidget(), updateProxyInputMethodAcceptanceFromWidget(), visibleChangeMode, Qt::WA_DontShowOnScreen, Qt::WA_NoSystemBackground, Qt::WA_OpaquePaintEvent, Qt::WA_QuitOnClose, Qt::WA_Resized, Qt::WA_SetCursor, Qt::WA_SetStyle, Qt::WA_WState_ExplicitShowHide, Qt::WA_WState_Hidden, QGraphicsProxyWidget::widget(), widget, WidgetToProxyMode, and QWidget::windowTitle.
Removes ("unembeds") subWin and deletes the proxy holder item. This can happen when QWidget::setParent() reparents the embedded window out of "embedded space".
Definition at line 462 of file qgraphicsproxywidget.cpp.
References child, QGraphicsItemPrivate::children, proxy, QGraphicsScene::removeItem(), and QGraphicsItemPrivate::scene.
void QGraphicsProxyWidgetPrivate::updateProxyGeometryFromWidget | ( | ) |
Definition at line 392 of file qgraphicsproxywidget.cpp.
References QWidget::geometry, QSize::isValid(), QWidget::isWindow(), QWidget::mapFromGlobal(), QRectF::moveTo(), NoMode, QWidget::parentWidget(), QWidget::pos, posChangeMode, QRectF::setSize(), QWidget::size, sizeChangeMode, QWidget::sizeHint, QGraphicsProxyWidget::subWidgetRect(), QRectF::topLeft(), widget, and WidgetToProxyMode.
Referenced by setWidget_helper().
void QGraphicsProxyWidgetPrivate::updateProxyInputMethodAcceptanceFromWidget | ( | ) |
Definition at line 426 of file qgraphicsproxywidget.cpp.
References QWidget::focusWidget(), QGraphicsItem::ItemAcceptsInputMethod, QWidget::testAttribute(), Qt::WA_InputMethodEnabled, and widget.
Referenced by setWidget_helper().
void QGraphicsProxyWidgetPrivate::updateWidgetGeometryFromProxy | ( | ) |
Definition at line 385 of file qgraphicsproxywidget.cpp.
QWidget* QGraphicsProxyWidgetPrivate::dragDropWidget |
Definition at line 52 of file qgraphicsproxywidget_p.h.
Definition at line 51 of file qgraphicsproxywidget_p.h.
Referenced by sendWidgetMouseEvent().
quint32 QGraphicsProxyWidgetPrivate::enabledChangeMode |
Definition at line 70 of file qgraphicsproxywidget_p.h.
Referenced by setWidget_helper().
quint32 QGraphicsProxyWidgetPrivate::focusFromWidgetToProxy |
Definition at line 74 of file qgraphicsproxywidget_p.h.
Qt::DropAction QGraphicsProxyWidgetPrivate::lastDropAction |
Definition at line 53 of file qgraphicsproxywidget_p.h.
Definition at line 50 of file qgraphicsproxywidget_p.h.
Referenced by sendWidgetMouseEvent().
quint32 QGraphicsProxyWidgetPrivate::paletteChangeMode |
Definition at line 72 of file qgraphicsproxywidget_p.h.
quint32 QGraphicsProxyWidgetPrivate::posChangeMode |
Definition at line 67 of file qgraphicsproxywidget_p.h.
Referenced by setWidget_helper(), and updateProxyGeometryFromWidget().
quint32 QGraphicsProxyWidgetPrivate::proxyIsGivingFocus |
Definition at line 75 of file qgraphicsproxywidget_p.h.
quint32 QGraphicsProxyWidgetPrivate::sizeChangeMode |
Definition at line 68 of file qgraphicsproxywidget_p.h.
Referenced by setWidget_helper(), and updateProxyGeometryFromWidget().
quint32 QGraphicsProxyWidgetPrivate::styleChangeMode |
Definition at line 71 of file qgraphicsproxywidget_p.h.
quint32 QGraphicsProxyWidgetPrivate::tooltipChangeMode |
Definition at line 73 of file qgraphicsproxywidget_p.h.
quint32 QGraphicsProxyWidgetPrivate::visibleChangeMode |
Definition at line 69 of file qgraphicsproxywidget_p.h.
Referenced by setWidget_helper().
Definition at line 49 of file qgraphicsproxywidget_p.h.
Referenced by _q_removeWidgetSlot(), findFocusChild(), mapToReceiver(), removeSubFocusHelper(), sendWidgetKeyEvent(), sendWidgetMouseEvent(), setWidget_helper(), updateProxyGeometryFromWidget(), and updateProxyInputMethodAcceptanceFromWidget().