![]() |
Qt 4.8
|
#include <qgraphicswidget_p.h>
Classes | |
| struct | WindowData |
Public Types | |
| 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_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 |
| virtual QVariant | inputMethodQueryHelper (Qt::InputMethodQuery query) const |
| This helper function helped us add input method query support in Qt 4. More... | |
| void | invalidateChildGraphicsEffectsRecursively (InvalidateReason reason) |
| void | invalidateChildrenSceneTransform () |
| void | invalidateDepthRecursively () |
| void | invalidateParentGraphicsEffectsRecursively () |
| bool | isFullyTransparent () const |
| bool | isInvisible () const |
| bool | isOpacityNull () const |
| virtual bool | isProxyWidget () 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 71 of file qgraphicswidget_p.h.
| anonymous enum |
|
inline |
Definition at line 75 of file qgraphicswidget_p.h.
|
virtual |
Definition at line 104 of file qgraphicswidget_p.cpp.
Referenced by QGraphicsWidgetPrivate().
| void QGraphicsWidgetPrivate::_q_relayout | ( | ) |
Definition at line 246 of file qgraphicswidget_p.cpp.
| void QGraphicsWidgetPrivate::adjustWindowFlags | ( | Qt::WindowFlags * | wFlags | ) |
Definition at line 355 of file qgraphicswidget_p.cpp.
Referenced by init().
|
inline |
Definition at line 147 of file qgraphicswidget_p.h.
Referenced by setAttribute(), and testAttribute().
| void QGraphicsWidgetPrivate::ensureMargins | ( | ) | const |
Ensures that margins is allocated.
This function must be called before any dereferencing.
Definition at line 121 of file qgraphicswidget_p.cpp.
| void QGraphicsWidgetPrivate::ensureWindowData | ( | ) |
Ensures that windowData is allocated.
This function must be called before any dereferencing.
Definition at line 157 of file qgraphicswidget_p.cpp.
Referenced by initStyleOptionTitleBar(), QGraphicsWidgetPrivate::WindowData::WindowData(), windowFrameHoverLeaveEvent(), windowFrameHoverMoveEvent(), windowFrameMouseMoveEvent(), windowFrameMousePressEvent(), and windowFrameMouseReleaseEvent().
| void QGraphicsWidgetPrivate::ensureWindowFrameMargins | ( | ) | const |
Ensures that windowFrameMargins is allocated.
This function must be called before any dereferencing.
Definition at line 139 of file qgraphicswidget_p.cpp.
| void QGraphicsWidgetPrivate::fixFocusChainBeforeReparenting | ( | QGraphicsWidget * | newParent, |
| QGraphicsScene * | oldScene, | ||
| QGraphicsScene * | newScene = 0 |
||
| ) |
is called after a reparent has taken place to fix up the focus chain(s)
Definition at line 785 of file qgraphicswidget_p.cpp.
| bool QGraphicsWidgetPrivate::hasDecoration | ( | ) | const |
Definition at line 777 of file qgraphicswidget_p.cpp.
Referenced by windowFrameHoverLeaveEvent(), and windowFrameHoverMoveEvent().
|
virtual |
Reimplemented from QGraphicsItemPrivate.
Definition at line 890 of file qgraphicswidget_p.cpp.
Referenced by _q_boundGeometryToSizeConstraints(), resetWidth(), setWidth(), and titleBarHeight().
| void QGraphicsWidgetPrivate::init | ( | QGraphicsItem * | parentItem, |
| Qt::WindowFlags | wFlags | ||
| ) |
Definition at line 63 of file qgraphicswidget_p.cpp.
Referenced by QGraphicsWidgetPrivate().
| void QGraphicsWidgetPrivate::initStyleOptionTitleBar | ( | QStyleOptionTitleBar * | option | ) |
Definition at line 331 of file qgraphicswidget_p.cpp.
Referenced by windowFrameHoverMoveEvent(), and windowFrameMouseReleaseEvent().
| QFont QGraphicsWidgetPrivate::naturalWidgetFont | ( | ) | const |
Definition at line 318 of file qgraphicswidget_p.cpp.
Referenced by resolveFont().
| QPalette QGraphicsWidgetPrivate::naturalWidgetPalette | ( | ) | const |
Definition at line 257 of file qgraphicswidget_p.cpp.
Referenced by resolvePalette().
|
virtual |
Reimplemented from QGraphicsItemPrivate.
Definition at line 907 of file qgraphicswidget_p.cpp.
|
virtual |
Reimplemented from QGraphicsItemPrivate.
Definition at line 884 of file qgraphicswidget_p.cpp.
|
virtual |
Reimplemented from QGraphicsItemPrivate.
Definition at line 277 of file qgraphicswidget_p.cpp.
| void QGraphicsWidgetPrivate::resolveLayoutDirection | ( | ) |
Definition at line 228 of file qgraphicswidget_p.cpp.
Referenced by init().
|
virtual |
Reimplemented from QGraphicsItemPrivate.
Definition at line 170 of file qgraphicswidget_p.cpp.
|
inline |
Definition at line 165 of file qgraphicswidget_p.h.
| void QGraphicsWidgetPrivate::setFont_helper | ( | const QFont & | font | ) |
Definition at line 270 of file qgraphicswidget_p.cpp.
| void QGraphicsWidgetPrivate::setGeometryFromSetPos | ( | ) |
Definition at line 913 of file qgraphicswidget_p.cpp.
|
virtual |
Reimplemented from QGraphicsItemPrivate.
Definition at line 896 of file qgraphicswidget_p.cpp.
| void QGraphicsWidgetPrivate::setLayout_helper | ( | QGraphicsLayout * | l | ) |
Definition at line 857 of file qgraphicswidget_p.cpp.
| void QGraphicsWidgetPrivate::setLayoutDirection_helper | ( | Qt::LayoutDirection | direction | ) |
Definition at line 206 of file qgraphicswidget_p.cpp.
Referenced by resolveLayoutDirection().
| void QGraphicsWidgetPrivate::setPalette_helper | ( | const QPalette & | palette | ) |
Definition at line 163 of file qgraphicswidget_p.cpp.
|
virtual |
Reimplemented from QGraphicsItemPrivate.
Definition at line 873 of file qgraphicswidget_p.cpp.
|
inline |
Definition at line 177 of file qgraphicswidget_p.h.
Referenced by setLayoutDirection_helper().
| qreal QGraphicsWidgetPrivate::titleBarHeight | ( | const QStyleOptionTitleBar & | options | ) | const |
Definition at line 89 of file qgraphicswidget_p.cpp.
Referenced by initStyleOptionTitleBar(), QGraphicsWidgetPrivate(), and windowFrameHoverMoveEvent().
| void QGraphicsWidgetPrivate::updateFont | ( | const QFont & | font | ) |
Definition at line 288 of file qgraphicswidget_p.cpp.
Referenced by resolveFont(), and setFont_helper().
| void QGraphicsWidgetPrivate::updatePalette | ( | const QPalette & | palette | ) |
Definition at line 178 of file qgraphicswidget_p.cpp.
Referenced by resolvePalette(), and setPalette_helper().
|
virtual |
Reimplemented from QGraphicsItemPrivate.
Definition at line 867 of file qgraphicswidget_p.cpp.
Referenced by _q_boundGeometryToSizeConstraints(), minimumHeightForWidth(), resetHeight(), and setHeight().
| void QGraphicsWidgetPrivate::windowFrameHoverLeaveEvent | ( | QGraphicsSceneHoverEvent * | event | ) |
Definition at line 751 of file qgraphicswidget_p.cpp.
Referenced by windowFrameHoverMoveEvent().
| void QGraphicsWidgetPrivate::windowFrameHoverMoveEvent | ( | QGraphicsSceneHoverEvent * | event | ) |
Definition at line 667 of file qgraphicswidget_p.cpp.
| void QGraphicsWidgetPrivate::windowFrameMouseMoveEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 597 of file qgraphicswidget_p.cpp.
| void QGraphicsWidgetPrivate::windowFrameMousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 408 of file qgraphicswidget_p.cpp.
| void QGraphicsWidgetPrivate::windowFrameMouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | event | ) |
Definition at line 377 of file qgraphicswidget_p.cpp.
Definition at line 222 of file qgraphicswidget_p.h.
| quint32 QGraphicsWidgetPrivate::attributes |
Definition at line 185 of file qgraphicswidget_p.h.
Referenced by init(), setAttribute(), and testAttribute().
| quint32 QGraphicsWidgetPrivate::autoFillBackground |
Definition at line 189 of file qgraphicswidget_p.h.
| QGraphicsWidget* QGraphicsWidgetPrivate::focusNext |
Definition at line 195 of file qgraphicswidget_p.h.
Referenced by fixFocusChainBeforeReparenting(), and init().
| Qt::FocusPolicy QGraphicsWidgetPrivate::focusPolicy |
Definition at line 194 of file qgraphicswidget_p.h.
Referenced by init().
| QGraphicsWidget* QGraphicsWidgetPrivate::focusPrev |
Definition at line 196 of file qgraphicswidget_p.h.
Referenced by fixFocusChainBeforeReparenting(), and init().
| QFont QGraphicsWidgetPrivate::font |
Definition at line 119 of file qgraphicswidget_p.h.
Referenced by resolveFont(), and updateFont().
| uint QGraphicsWidgetPrivate::inheritedFontResolveMask |
Definition at line 120 of file qgraphicswidget_p.h.
Referenced by resolveFont(), and updateFont().
| uint QGraphicsWidgetPrivate::inheritedPaletteResolveMask |
Definition at line 114 of file qgraphicswidget_p.h.
Referenced by resolvePalette(), and updatePalette().
| quint32 QGraphicsWidgetPrivate::inSetGeometry |
Definition at line 186 of file qgraphicswidget_p.h.
Referenced by QGraphicsWidget::setGeometry(), and setGeometryFromSetPos().
| quint32 QGraphicsWidgetPrivate::inSetPos |
Definition at line 188 of file qgraphicswidget_p.h.
Referenced by QGraphicsWidget::setGeometry(), and setGeometryFromSetPos().
| QGraphicsLayout* QGraphicsWidgetPrivate::layout |
Definition at line 107 of file qgraphicswidget_p.h.
Referenced by QGraphicsWidget::setGeometry(), and setLayout_helper().
|
mutable |
Definition at line 100 of file qgraphicswidget_p.h.
Referenced by ensureMargins(), and ~QGraphicsWidgetPrivate().
| quint32 QGraphicsWidgetPrivate::padding |
Definition at line 191 of file qgraphicswidget_p.h.
| QPalette QGraphicsWidgetPrivate::palette |
Definition at line 113 of file qgraphicswidget_p.h.
Referenced by naturalWidgetPalette(), resolvePalette(), and updatePalette().
| quint32 QGraphicsWidgetPrivate::polished |
Definition at line 187 of file qgraphicswidget_p.h.
Referenced by updateFont().
| quint32 QGraphicsWidgetPrivate::refCountInvokeRelayout |
Definition at line 190 of file qgraphicswidget_p.h.
Referenced by _q_relayout().
| bool QGraphicsWidgetPrivate::setWindowFrameMargins |
Definition at line 217 of file qgraphicswidget_p.h.
| struct QGraphicsWidgetPrivate::WindowData * QGraphicsWidgetPrivate::windowData |
| Qt::WindowFlags QGraphicsWidgetPrivate::windowFlags |
Definition at line 199 of file qgraphicswidget_p.h.
Referenced by hasDecoration(), init(), and initStyleOptionTitleBar().
|
mutable |
Definition at line 218 of file qgraphicswidget_p.h.
Referenced by ensureWindowFrameMargins(), windowFrameHoverMoveEvent(), windowFrameMouseReleaseEvent(), and ~QGraphicsWidgetPrivate().