Qt 4.8
|
#include <qgraphicsproxywidget_p.h>
Public Types | |
enum | ChangeMode { NoMode, ProxyToWidgetMode, WidgetToProxyMode } |
Public Types inherited from QGraphicsWidgetPrivate | |
enum | { Left, Top, Right, Bottom } |
Public Types inherited from QGraphicsItemPrivate | |
enum | AncestorFlag { NoFlag = 0, AncestorHandlesChildEvents = 0x1, AncestorClipsChildren = 0x2, AncestorIgnoresTransformations = 0x4, AncestorFiltersChildEvents = 0x8 } |
enum | Extra { ExtraToolTip, ExtraCursor, ExtraCacheData, ExtraMaxDeviceCoordCacheSize, ExtraBoundingRegionGranularity } |
enum | InvalidateReason { OpacityChanged } |
Public Functions | |
void | _q_removeWidgetSlot () |
void | embedSubWindow (QWidget *) |
Embeds subWin as a subwindow of this proxy widget. More... | |
QWidget * | findFocusChild (QWidget *child, bool next) const |
void | init () |
QVariant | inputMethodQueryHelper (Qt::InputMethodQuery query) const |
Reimplemented from QGraphicsItemPrivate. More... | |
bool | isProxyWidget () const |
QPointF | mapToReceiver (const QPointF &pos, const QWidget *receiver) const |
QGraphicsProxyWidgetPrivate () | |
void | removeSubFocusHelper (QWidget *widget, Qt::FocusReason reason) |
void | sendWidgetKeyEvent (QKeyEvent *event) |
void | sendWidgetMouseEvent (QGraphicsSceneMouseEvent *event) |
void | sendWidgetMouseEvent (QGraphicsSceneHoverEvent *event) |
void | setWidget_helper (QWidget *widget, bool autoShow) |
void | unembedSubWindow (QWidget *) |
Removes ("unembeds") subWin and deletes the proxy holder item. More... | |
void | updateProxyGeometryFromWidget () |
void | updateProxyInputMethodAcceptanceFromWidget () |
void | updateWidgetGeometryFromProxy () |
Public Functions inherited from QGraphicsWidgetPrivate | |
void | _q_relayout () |
void | adjustWindowFlags (Qt::WindowFlags *wFlags) |
int | attributeToBitIndex (Qt::WidgetAttribute att) const |
void | ensureMargins () const |
Ensures that margins is allocated. More... | |
void | ensureWindowData () |
Ensures that windowData is allocated. More... | |
void | ensureWindowFrameMargins () const |
Ensures that windowFrameMargins is allocated. More... | |
void | fixFocusChainBeforeReparenting (QGraphicsWidget *newParent, QGraphicsScene *oldScene, QGraphicsScene *newScene=0) |
bool | hasDecoration () const |
qreal | height () const |
void | init (QGraphicsItem *parentItem, Qt::WindowFlags wFlags) |
void | initStyleOptionTitleBar (QStyleOptionTitleBar *option) |
QFont | naturalWidgetFont () const |
QPalette | naturalWidgetPalette () const |
QGraphicsWidgetPrivate () | |
void | resetHeight () |
void | resetWidth () |
void | resolveFont (uint inheritedMask) |
void | resolveLayoutDirection () |
void | resolvePalette (uint inheritedMask) |
void | setAttribute (Qt::WidgetAttribute att, bool value) |
void | setFont_helper (const QFont &font) |
void | setGeometryFromSetPos () |
void | setHeight (qreal) |
void | setLayout_helper (QGraphicsLayout *l) |
void | setLayoutDirection_helper (Qt::LayoutDirection direction) |
void | setPalette_helper (const QPalette &palette) |
void | setWidth (qreal) |
bool | testAttribute (Qt::WidgetAttribute att) const |
qreal | titleBarHeight (const QStyleOptionTitleBar &options) const |
void | updateFont (const QFont &font) |
void | updatePalette (const QPalette &palette) |
qreal | width () const |
void | windowFrameHoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
void | windowFrameHoverMoveEvent (QGraphicsSceneHoverEvent *event) |
void | windowFrameMouseMoveEvent (QGraphicsSceneMouseEvent *event) |
void | windowFrameMousePressEvent (QGraphicsSceneMouseEvent *event) |
void | windowFrameMouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
virtual | ~QGraphicsWidgetPrivate () |
Public Functions inherited from QGraphicsItemPrivate | |
void | addChild (QGraphicsItem *child) |
QGraphicsScenePrivate::registerTopLevelItem(). More... | |
void | appendGraphicsTransform (QGraphicsTransform *t) |
qreal | calcEffectiveOpacity () const |
void | childrenBoundingRectHelper (QTransform *x, QRectF *rect, QGraphicsItem *topMostEffectItem) |
Returns the bounding rect of this item's children (excluding itself). More... | |
bool | childrenClippedToShape () const |
bool | childrenCombineOpacity () const |
QDeclarativeListProperty< QGraphicsObject > | childrenList () |
Returns a list of this item's children. More... | |
void | clearFocusHelper (bool giveFocusToParent) |
void | clearSubFocus (QGraphicsItem *rootItem=0, QGraphicsItem *stopItem=0) |
qreal | combineOpacityFromParent (qreal parentOpacity) const |
void | combineTransformFromParent (QTransform *x, const QTransform *viewTransform=0) const |
Combines this item's position and transform onto transform. More... | |
void | combineTransformToParent (QTransform *x, const QTransform *viewTransform=0) const |
Combines this item's position and transform onto transform. More... | |
int | depth () const |
bool | discardUpdateRequest (bool ignoreVisibleBit=false, bool ignoreDirtyBit=false, bool ignoreOpacity=false) const |
Returns true if we can discard an update request; otherwise false. More... | |
QRectF | effectiveBoundingRect (QGraphicsItem *topMostEffectItem=0) const |
Returns the effective bounding rect of the item. More... | |
QRectF | effectiveBoundingRect (const QRectF &rect) const |
Returns the effective bounding rect of the given item space rect. More... | |
qreal | effectiveOpacity () const |
void | ensureSceneTransform () |
void | ensureSceneTransformRecursive (QGraphicsItem **topMostDirtyItem) |
void | ensureSequentialSiblingIndex () |
Ensures that the list of children is sorted by insertion order, and that the siblingIndexes are packed (no gaps), and start at 0. More... | |
void | ensureSortedChildren () |
QVariant | extra (Extra type) const |
QGraphicsItemCache * | extraItemCache () const |
virtual void | focusScopeItemChange (bool isSubFocusItem) |
Subclasses can reimplement this function to be notified when an item becomes a focusScopeItem (or is no longer a focusScopeItem). More... | |
QPointF | genericMapFromScene (const QPointF &pos, const QWidget *viewport) const |
Maps the point pos from scene to item coordinates. More... | |
bool | hasTranslateOnlySceneTransform () |
void | initStyleOption (QStyleOptionGraphicsItem *option, const QTransform &worldTransform, const QRegion &exposedRegion, bool allItems=false) const |
void | invalidateChildGraphicsEffectsRecursively (InvalidateReason reason) |
void | invalidateChildrenSceneTransform () |
void | invalidateDepthRecursively () |
void | invalidateParentGraphicsEffectsRecursively () |
bool | isFullyTransparent () const |
bool | isInvisible () const |
bool | isOpacityNull () const |
bool | itemIsUntransformable () const |
void | markParentDirty (bool updateBoundingRect=false) |
QGraphicsItemCache * | maybeExtraItemCache () const |
void | prependGraphicsTransform (QGraphicsTransform *t) |
QGraphicsItemPrivate () | |
void | remapItemPos (QEvent *event, QGraphicsItem *item) |
Maps any item pos properties of event to item's coordinate system. More... | |
void | removeChild (QGraphicsItem *child) |
QGraphicsScenePrivate::unregisterTopLevelItem(). More... | |
void | removeExtraItemCache () |
void | resetFocusProxy () |
Sets the focusProxy pointer to 0 for all items that have this item as their focusProxy. More... | |
void | resolveDepth () |
Resolves the stacking depth of this object and all its ancestors. More... | |
QRectF | sceneEffectiveBoundingRect () const |
Returns the effective bounding rect of this item in scene coordinates, by combining sceneTransform() with boundingRect(), taking into account the effect that the item might have. More... | |
void | sendScenePosChange () |
void | setEnabledHelper (bool newEnabled, bool explicitly, bool update=true) |
Sets this item's visibility to newEnabled. More... | |
void | setExtra (Extra type, const QVariant &value) |
void | setFocusHelper (Qt::FocusReason focusReason, bool climb, bool focusFromHide) |
void | setIsMemberOfGroup (bool enabled) |
Propagates item group membership. More... | |
void | setParentItemHelper (QGraphicsItem *parent, const QVariant *newParentVariant, const QVariant *thisPointerVariant) |
Make sure not to trigger any pure virtual function calls (e. More... | |
virtual void | setPosHelper (const QPointF &pos) |
Sets the position pos. More... | |
void | setSubFocus (QGraphicsItem *rootItem=0, QGraphicsItem *stopItem=0) |
void | setTransformHelper (const QTransform &transform) |
Sets the transform transform. More... | |
void | setVisibleHelper (bool newVisible, bool explicitly, bool update=true) |
Sets this item's visibility to newVisible. More... | |
virtual void | siblingOrderChange () |
Subclasses can reimplement this function to be notified when its siblingIndex order is changed. More... | |
virtual void | subFocusItemChange () |
Subclasses can reimplement this function to be notified when subFocusItem changes. More... | |
virtual void | transformChanged () |
QTransform | transformToParent () const |
void | unsetExtra (Extra type) |
void | updateAncestorFlag (QGraphicsItem::GraphicsItemFlag childFlag, AncestorFlag flag=NoFlag, bool enabled=false, bool root=true) |
Propagates the ancestor flag flag with value enabled to all this item's children. More... | |
void | updateAncestorFlags () |
void | updateChildWithGraphicsEffectFlagRecursively () |
void | updatePaintedViewBoundingRects (bool updateChildren) |
virtual void | updateSceneTransformFromParent () |
virtual | ~QGraphicsItemPrivate () |
Additional Inherited Members | |
Static Public Functions inherited from QGraphicsItemPrivate | |
static void | children_append (QDeclarativeListProperty< QGraphicsObject > *list, QGraphicsObject *item) |
static QGraphicsObject * | children_at (QDeclarativeListProperty< QGraphicsObject > *list, int) |
static void | children_clear (QDeclarativeListProperty< QGraphicsObject > *list) |
static int | children_count (QDeclarativeListProperty< QGraphicsObject > *list) |
static const QGraphicsItemPrivate * | get (const QGraphicsItem *item) |
static QGraphicsItemPrivate * | get (QGraphicsItem *item) |
static bool | insertionOrder (QGraphicsItem *a, QGraphicsItem *b) |
static bool | isOpacityNull (qreal opacity) |
static bool | movableAncestorIsSelected (const QGraphicsItem *item) |
Definition at line 63 of file qgraphicsproxywidget_p.h.
Enumerator | |
---|---|
NoMode | |
ProxyToWidgetMode | |
WidgetToProxyMode |
Definition at line 110 of file qgraphicsproxywidget_p.h.
|
inline |
Definition at line 67 of file qgraphicsproxywidget_p.h.
void QGraphicsProxyWidgetPrivate::_q_removeWidgetSlot | ( | ) |
Definition at line 413 of file qgraphicsproxywidget.cpp.
Referenced by QGraphicsProxyWidgetPrivate().
void QGraphicsProxyWidgetPrivate::embedSubWindow | ( | QWidget * | subWin | ) |
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 487 of file qgraphicsproxywidget.cpp.
Referenced by QGraphicsProxyWidgetPrivate().
Definition at line 381 of file qgraphicsproxywidget.cpp.
Referenced by QGraphicsProxyWidgetPrivate().
void QGraphicsProxyWidgetPrivate::init | ( | ) |
Definition at line 195 of file qgraphicsproxywidget.cpp.
Referenced by QGraphicsProxyWidgetPrivate().
|
virtual |
Reimplemented from QGraphicsItemPrivate.
reimplementation QGraphicsProxyWidget::inputMethodQuery().
Reimplemented from QGraphicsItemPrivate.
Definition at line 347 of file qgraphicsproxywidget.cpp.
Referenced by QGraphicsProxyWidgetPrivate().
|
virtual |
Tells us if it is a proxy widget
Reimplemented from QGraphicsItemPrivate.
Definition at line 522 of file qgraphicsproxywidget.cpp.
Referenced by QGraphicsProxyWidgetPrivate().
QPointF QGraphicsProxyWidgetPrivate::mapToReceiver | ( | const QPointF & | pos, |
const QWidget * | receiver | ||
) | const |
Definition at line 530 of file qgraphicsproxywidget.cpp.
Referenced by sendWidgetMouseEvent().
void QGraphicsProxyWidgetPrivate::removeSubFocusHelper | ( | QWidget * | widget, |
Qt::FocusReason | reason | ||
) |
Definition at line 329 of file qgraphicsproxywidget.cpp.
Referenced by QGraphicsProxyWidgetPrivate().
void QGraphicsProxyWidgetPrivate::sendWidgetKeyEvent | ( | QKeyEvent * | event | ) |
Definition at line 307 of file qgraphicsproxywidget.cpp.
Referenced by QGraphicsProxyWidgetPrivate().
void QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 220 of file qgraphicsproxywidget.cpp.
Referenced by QGraphicsProxyWidgetPrivate(), and sendWidgetMouseEvent().
void QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent | ( | QGraphicsSceneHoverEvent * | event | ) |
Definition at line 205 of file qgraphicsproxywidget.cpp.
void QGraphicsProxyWidgetPrivate::setWidget_helper | ( | QWidget * | widget, |
bool | autoShow | ||
) |
Definition at line 603 of file qgraphicsproxywidget.cpp.
Referenced by QGraphicsProxyWidgetPrivate().
void QGraphicsProxyWidgetPrivate::unembedSubWindow | ( | QWidget * | subWin | ) |
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 506 of file qgraphicsproxywidget.cpp.
Referenced by QGraphicsProxyWidgetPrivate().
void QGraphicsProxyWidgetPrivate::updateProxyGeometryFromWidget | ( | ) |
Definition at line 430 of file qgraphicsproxywidget.cpp.
void QGraphicsProxyWidgetPrivate::updateProxyInputMethodAcceptanceFromWidget | ( | ) |
Definition at line 464 of file qgraphicsproxywidget.cpp.
void QGraphicsProxyWidgetPrivate::updateWidgetGeometryFromProxy | ( | ) |
Definition at line 423 of file qgraphicsproxywidget.cpp.
QWidget* QGraphicsProxyWidgetPrivate::dragDropWidget |
Definition at line 100 of file qgraphicsproxywidget_p.h.
Definition at line 99 of file qgraphicsproxywidget_p.h.
Referenced by sendWidgetMouseEvent().
quint32 QGraphicsProxyWidgetPrivate::enabledChangeMode |
Definition at line 118 of file qgraphicsproxywidget_p.h.
quint32 QGraphicsProxyWidgetPrivate::focusFromWidgetToProxy |
Definition at line 122 of file qgraphicsproxywidget_p.h.
Qt::DropAction QGraphicsProxyWidgetPrivate::lastDropAction |
Definition at line 101 of file qgraphicsproxywidget_p.h.
Definition at line 98 of file qgraphicsproxywidget_p.h.
Referenced by sendWidgetMouseEvent().
quint32 QGraphicsProxyWidgetPrivate::paletteChangeMode |
Definition at line 120 of file qgraphicsproxywidget_p.h.
quint32 QGraphicsProxyWidgetPrivate::posChangeMode |
Definition at line 115 of file qgraphicsproxywidget_p.h.
Referenced by updateProxyGeometryFromWidget().
quint32 QGraphicsProxyWidgetPrivate::proxyIsGivingFocus |
Definition at line 123 of file qgraphicsproxywidget_p.h.
quint32 QGraphicsProxyWidgetPrivate::sizeChangeMode |
Definition at line 116 of file qgraphicsproxywidget_p.h.
Referenced by updateProxyGeometryFromWidget().
quint32 QGraphicsProxyWidgetPrivate::styleChangeMode |
Definition at line 119 of file qgraphicsproxywidget_p.h.
quint32 QGraphicsProxyWidgetPrivate::tooltipChangeMode |
Definition at line 121 of file qgraphicsproxywidget_p.h.
quint32 QGraphicsProxyWidgetPrivate::visibleChangeMode |
Definition at line 117 of file qgraphicsproxywidget_p.h.
Definition at line 97 of file qgraphicsproxywidget_p.h.
Referenced by _q_removeWidgetSlot(), findFocusChild(), inputMethodQueryHelper(), mapToReceiver(), QGraphicsProxyWidgetPrivate(), removeSubFocusHelper(), sendWidgetKeyEvent(), sendWidgetMouseEvent(), updateProxyGeometryFromWidget(), and updateProxyInputMethodAcceptanceFromWidget().