![]() |
Qt 6.x
The Qt SDK
|
#include <qgraphicsitem_p.h>
Classes | |
struct | ExtraStruct |
struct | TransformData |
Public Types | |
enum | Extra { ExtraToolTip , ExtraCursor , ExtraCacheData , ExtraMaxDeviceCoordCacheSize , ExtraBoundingRegionGranularity } |
enum | AncestorFlag { NoFlag = 0 , AncestorHandlesChildEvents = 0x1 , AncestorClipsChildren = 0x2 , AncestorIgnoresTransformations = 0x4 , AncestorFiltersChildEvents = 0x8 , AncestorContainsChildren = 0x10 } |
Static Public Member Functions | |
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 61 of file qgraphicsitem_p.h.
Enumerator | |
---|---|
NoFlag | |
AncestorHandlesChildEvents | |
AncestorClipsChildren | |
AncestorIgnoresTransformations | |
AncestorFiltersChildEvents | |
AncestorContainsChildren |
Definition at line 73 of file qgraphicsitem_p.h.
Enumerator | |
---|---|
ExtraToolTip | |
ExtraCursor | |
ExtraCacheData | |
ExtraMaxDeviceCoordCacheSize | |
ExtraBoundingRegionGranularity |
Definition at line 65 of file qgraphicsitem_p.h.
QGraphicsItemPrivate::QGraphicsItemPrivate | ( | ) |
Definition at line 846 of file qgraphicsitem.cpp.
|
virtual |
Definition at line 917 of file qgraphicsitem.cpp.
void QGraphicsItemPrivate::addChild | ( | QGraphicsItem * | child | ) |
QGraphicsScenePrivate::registerTopLevelItem().
Definition at line 5403 of file qgraphicsitem.cpp.
References QList< T >::append(), child, children, emit, ensureSequentialSiblingIndex(), isObject, needSortChildren, q_ptr, and QList< T >::size().
Referenced by setParentItemHelper().
void QGraphicsItemPrivate::appendGraphicsTransform | ( | QGraphicsTransform * | t | ) |
Definition at line 4161 of file qgraphicsitem.cpp.
References QList< T >::append(), QListSpecialMethodsBase< T >::contains(), dirtySceneTransform, QGraphicsItemPrivate::TransformData::graphicsTransforms, QGraphicsItemPrivate::TransformData::onlyTransform, transformChanged(), and transformData.
|
inline |
Definition at line 236 of file qgraphicsitem_p.h.
References QGraphicsItem::ItemDoesntPropagateOpacityToChildren, QGraphicsItem::ItemIgnoresParentOpacity, o, and parent.
void QGraphicsItemPrivate::childrenBoundingRectHelper | ( | QTransform * | x, |
QRectF * | rect, | ||
QGraphicsItem * | topMostEffectItem | ||
) |
Returns the bounding rect of this item's children (excluding itself).
Definition at line 1386 of file qgraphicsitem.cpp.
References QList< T >::at(), child, children, childrenBoundingRectHelper(), i, QList< T >::isEmpty(), QPointF::isNull(), QGraphicsItem::ItemClipsChildrenToShape, pos, rect, QList< T >::size(), transformData, and transformToParent().
Referenced by QGraphicsItem::childrenBoundingRect(), and childrenBoundingRectHelper().
|
inline |
Definition at line 305 of file qgraphicsitem_p.h.
References QGraphicsItem::ItemClipsChildrenToShape.
|
inline |
Definition at line 291 of file qgraphicsitem_p.h.
References i, QGraphicsItem::ItemDoesntPropagateOpacityToChildren, and QGraphicsItem::ItemIgnoresParentOpacity.
Referenced by discardUpdateRequest(), QGraphicsScenePrivate::drawSubtreeRecursive(), QGraphicsScenePrivate::processDirtyItemsRecursive(), and QGraphicsSceneIndexPrivate::recursive_items_helper().
void QGraphicsItemPrivate::clearFocusHelper | ( | bool | giveFocusToParent, |
bool | hiddenByParentPanel | ||
) |
Definition at line 3472 of file qgraphicsitem.cpp.
References clearSubFocus(), QGraphicsItem::d_ptr, focusScopeItem, focusScopeItemChange(), QGraphicsItem::hasFocus(), inDestructor, QGraphicsItem::ItemIsFocusScope, Qt::OtherFocusReason, parent, q_ptr, scene, QGraphicsScene::setFocusItem(), and subFocusItem.
Referenced by QGraphicsItem::clearFocus(), and setVisibleHelper().
void QGraphicsItemPrivate::clearSubFocus | ( | QGraphicsItem * | rootItem = nullptr , |
QGraphicsItem * | stopItem = nullptr |
||
) |
Definition at line 5557 of file qgraphicsitem.cpp.
References QGraphicsItem::d_ptr, QGraphicsItem::isAncestorOf(), QGraphicsItem::isPanel(), parent, q_ptr, rootItem(), subFocusItem, and subFocusItemChange().
Referenced by clearFocusHelper(), QGraphicsScenePrivate::removeItemHelper(), setFocusHelper(), setParentItemHelper(), and setSubFocus().
Definition at line 282 of file qgraphicsitem_p.h.
References QGraphicsItem::ItemDoesntPropagateOpacityToChildren, QGraphicsItem::ItemIgnoresParentOpacity, and parent.
Referenced by QGraphicsScenePrivate::drawSubtreeRecursive(), QGraphicsScenePrivate::processDirtyItemsRecursive(), and QGraphicsSceneIndexPrivate::recursive_items_helper().
void QGraphicsItemPrivate::combineTransformFromParent | ( | QTransform * | x, |
const QTransform * | viewTransform = nullptr |
||
) | const |
Combines this item's position and transform onto transform.
If you need to change this function (e.g., adding more transformation modes / options), make sure to change QGraphicsItem::deviceTransform() as well.
Definition at line 1146 of file qgraphicsitem.cpp.
References QGraphicsItemPrivate::TransformData::computedFullTransform(), QGraphicsItem::deviceTransform(), itemIsUntransformable(), pos, q_ptr, transformData, QTransform::translate(), QPointF::x(), and QPointF::y().
Referenced by QGraphicsItem::itemTransform().
void QGraphicsItemPrivate::combineTransformToParent | ( | QTransform * | x, |
const QTransform * | viewTransform = nullptr |
||
) | const |
Combines this item's position and transform onto transform.
If you need to change this function (e.g., adding more transformation modes / options), make sure to change all places marked with COMBINE.
Definition at line 1124 of file qgraphicsitem.cpp.
References QGraphicsItemPrivate::TransformData::computedFullTransform(), QGraphicsItem::deviceTransform(), QTransform::fromTranslate(), QPointF::isNull(), itemIsUntransformable(), pos, q_ptr, transformData, QPointF::x(), and QPointF::y().
Referenced by transformToParent().
int QGraphicsItemPrivate::depth | ( | ) | const |
Definition at line 5324 of file qgraphicsitem.cpp.
References itemDepth, and resolveDepth().
Referenced by QGraphicsItem::commonAncestorItem(), and QGraphicsItem::isAncestorOf().
bool QGraphicsItemPrivate::discardUpdateRequest | ( | bool | ignoreVisibleBit = false , |
bool | ignoreDirtyBit = false , |
||
bool | ignoreOpacity = false |
||
) | const |
Returns true
if we can discard an update request; otherwise false.
Definition at line 5310 of file qgraphicsitem.cpp.
References childrenCombineOpacity(), fullUpdatePending, ignoreOpacity, ignoreVisible, isFullyTransparent(), scene, and visible.
Referenced by QGraphicsScenePrivate::markDirty().
Definition at line 2946 of file qgraphicsitem.cpp.
References QGraphicsEffect::boundingRectFor(), deviceRect, effect, graphicsEffect, QList< T >::isEmpty(), QGraphicsEffect::isEnabled(), rect, scene, QRectF::toAlignedRect(), view, and QGraphicsScene::views().
QRectF QGraphicsItemPrivate::effectiveBoundingRect | ( | QGraphicsItem * | topMostEffectItem = nullptr | ) | const |
Definition at line 2978 of file qgraphicsitem.cpp.
References AncestorClipsChildren, AncestorContainsChildren, ancestorFlags, QGraphicsItem::boundingRect(), QGraphicsItem::d_ptr, effect, effectiveBoundingRect(), graphicsEffect, QGraphicsEffect::isEnabled(), QGraphicsItem::mapRectToItem(), parent, q_ptr, Q_UNUSED, and scene.
Referenced by effectiveBoundingRect(), and sceneEffectiveBoundingRect().
|
inline |
Definition at line 275 of file qgraphicsitem_p.h.
References parent.
Referenced by QGraphicsItem::effectiveOpacity().
|
inline |
Definition at line 218 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::deviceTransform(), QGraphicsItem::itemTransform(), and QGraphicsItem::sceneTransform().
void QGraphicsItemPrivate::ensureSceneTransformRecursive | ( | QGraphicsItem ** | topMostDirtyItem | ) |
Definition at line 5497 of file qgraphicsitem.cpp.
References QGraphicsItem::d_ptr, dirtySceneTransform, ensureSceneTransformRecursive(), invalidateChildrenSceneTransform(), parent, Q_ASSERT, q_ptr, and updateSceneTransformFromParent().
Referenced by ensureSceneTransformRecursive().
void QGraphicsItemPrivate::ensureSequentialSiblingIndex | ( | ) |
Ensures that the list of children is sorted by insertion order, and that the siblingIndexes are packed (no gaps), and start at 0.
QGraphicsScenePrivate::ensureSequentialTopLevelSiblingIndexes().
Definition at line 4605 of file qgraphicsitem.cpp.
References QList< T >::begin(), children, QList< T >::end(), holesInSiblingIndex, i, insertionOrder(), needSortChildren, sequentialOrdering, and QList< T >::size().
Referenced by addChild(), and QGraphicsItem::stackBefore().
|
inline |
Definition at line 655 of file qgraphicsitem_p.h.
References QList< T >::at(), QList< T >::begin(), children, QGraphicsItem::d_ptr, QList< T >::end(), i, QList< T >::isEmpty(), needSortChildren, qt_notclosestLeaf(), sequentialOrdering, siblingIndex, and QList< T >::size().
Referenced by QGraphicsScene::addItem(), QGraphicsItem::childItems(), QGraphicsScenePrivate::draw(), and QGraphicsSceneIndexPrivate::recursive_items_helper().
Definition at line 160 of file qgraphicsitem_p.h.
References i, QGraphicsItemPrivate::ExtraStruct::type, and QGraphicsItemPrivate::ExtraStruct::value.
Referenced by QGraphicsProxyWidgetPrivate::_q_removeWidgetSlot(), QGraphicsItem::boundingRegionGranularity(), QGraphicsItem::cursor(), QGraphicsScenePrivate::drawItemHelper(), QGraphicsProxyWidgetPrivate::embedSubWindow(), extraItemCache(), QGraphicsSvgItem::maximumCacheSize(), maybeExtraItemCache(), removeExtraItemCache(), setVisibleHelper(), and QGraphicsProxyWidgetPrivate::setWidget_helper().
QGraphicsItemCache * QGraphicsItemPrivate::extraItemCache | ( | ) | const |
Definition at line 5450 of file qgraphicsitem.cpp.
References extra(), ExtraCacheData, and setExtra().
Referenced by QGraphicsScenePrivate::drawItemHelper(), QGraphicsItem::setCacheMode(), and QGraphicsItem::update().
|
virtual |
Subclasses can reimplement this function to be notified when an item becomes a focusScopeItem (or is no longer a focusScopeItem).
Definition at line 5599 of file qgraphicsitem.cpp.
References Q_UNUSED.
Referenced by clearFocusHelper(), setFocusHelper(), and setParentItemHelper().
QPointF QGraphicsItemPrivate::genericMapFromScene | ( | const QPointF & | pos, |
const QWidget * | viewport | ||
) | const |
Definition at line 1110 of file qgraphicsitem.cpp.
References genericMapFromSceneTransform(), QTransform::map(), pos, and viewport().
Referenced by QGraphicsScene::contextMenuEvent(), QGraphicsScenePrivate::sendDragDropEvent(), QGraphicsScenePrivate::storeMouseButtonsForMouseGrabber(), and QGraphicsScene::wheelEvent().
QTransform QGraphicsItemPrivate::genericMapFromSceneTransform | ( | const QWidget * | viewport = nullptr | ) | const |
Maps the point pos from scene to item coordinates. If view is passed and the item is untransformable, this function will correctly map pos from the scene using the view's transformation.
Definition at line 1095 of file qgraphicsitem.cpp.
References QTransform::inverted(), itemIsUntransformable(), sceneTransform, view, and viewport().
Referenced by genericMapFromScene(), QGraphicsScenePrivate::sendHoverEvent(), QGraphicsScenePrivate::sendMouseEvent(), and QGraphicsScenePrivate::updateTouchPointsForItem().
|
inlinestatic |
Definition at line 85 of file qgraphicsitem_p.h.
References QGraphicsItem::d_ptr, QScopedPointer< T, Cleanup >::data(), and item.
Referenced by adjustedItemEffectiveBoundingRect(), QtPrivate::intersect_path(), QtPrivate::intersect_point(), QtPrivate::intersect_rect(), and QGraphicsLayoutItem::isEmpty().
|
inlinestatic |
Definition at line 89 of file qgraphicsitem_p.h.
References QGraphicsItem::d_ptr, QScopedPointer< T, Cleanup >::data(), and item.
|
inline |
Definition at line 224 of file qgraphicsitem_p.h.
Referenced by QGraphicsView::fitInView(), QGraphicsItem::mapFromScene(), QGraphicsItem::mapFromScene(), QGraphicsItem::mapFromScene(), QGraphicsItem::mapFromScene(), QGraphicsItem::mapRectFromScene(), QGraphicsItem::mapRectToScene(), QGraphicsItem::mapToScene(), QGraphicsItem::mapToScene(), QGraphicsItem::mapToScene(), QGraphicsItem::mapToScene(), QGraphicsItem::prepareGeometryChange(), and QGraphicsItem::sceneBoundingRect().
|
virtual |
Returns the height of the item Reimplemented by QGraphicsWidget
Reimplemented in QGraphicsWidgetPrivate.
Definition at line 7686 of file qgraphicsitem.cpp.
void QGraphicsItemPrivate::initStyleOption | ( | QStyleOptionGraphicsItem * | option, |
const QTransform & | worldTransform, | ||
const QRegion & | exposedRegion, | ||
bool | allItems = false |
||
) | const |
Definition at line 1429 of file qgraphicsitem.cpp.
References QTransform::inverted(), QGraphicsItem::ItemUsesExtendedStyleOption, QTransform::mapRect(), QGraphicsScene::mouseGrabberItem(), Q_ASSERT, q_ptr, scene, selected, QStyle::State_Enabled, QStyle::State_HasFocus, QStyle::State_MouseOver, QStyle::State_None, QStyle::State_Selected, QStyle::State_Sunken, QGraphicsItem::toGraphicsObject(), and QRectF::toRect().
Referenced by QGraphicsScenePrivate::draw(), and QGraphicsView::paintEvent().
|
inlinestatic |
Definition at line 675 of file qgraphicsitem_p.h.
Referenced by ensureSequentialSiblingIndex(), and QGraphicsScenePrivate::ensureSequentialTopLevelSiblingIndexes().
|
inline |
Definition at line 230 of file qgraphicsitem_p.h.
References i.
Referenced by QGraphicsScenePrivate::drawSubtreeRecursive(), ensureSceneTransformRecursive(), QGraphicsScenePrivate::processDirtyItemsRecursive(), and QGraphicsSceneIndexPrivate::recursive_items_helper().
void QGraphicsItemPrivate::invalidateDepthRecursively | ( | ) |
Definition at line 5371 of file qgraphicsitem.cpp.
References QList< T >::at(), children, QGraphicsItem::d_ptr, i, invalidateDepthRecursively(), itemDepth, and QList< T >::size().
Referenced by invalidateDepthRecursively(), and setParentItemHelper().
|
inline |
Definition at line 265 of file qgraphicsitem_p.h.
References parent.
Referenced by discardUpdateRequest().
|
inline |
Definition at line 308 of file qgraphicsitem_p.h.
|
inline |
Definition at line 259 of file qgraphicsitem_p.h.
Referenced by QGraphicsScenePrivate::draw(), QGraphicsScenePrivate::drawSubtreeRecursive(), QGraphicsScenePrivate::processDirtyItemsRecursive(), QGraphicsSceneIndexPrivate::recursive_items_helper(), and QGraphicsItem::setOpacity().
|
inlinestatic |
Definition at line 262 of file qgraphicsitem_p.h.
|
virtual |
Tells us if it is a proxy widget
Reimplemented in QGraphicsProxyWidgetPrivate.
Definition at line 5619 of file qgraphicsitem.cpp.
Referenced by QGraphicsViewPrivate::updateInputMethodSensitivity().
|
inline |
Definition at line 102 of file qgraphicsitem_p.h.
References QGraphicsItem::ItemIgnoresTransformations.
Referenced by QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex(), combineTransformFromParent(), combineTransformToParent(), QGraphicsItem::deviceTransform(), QGraphicsScenePrivate::drawSubtreeRecursive(), genericMapFromSceneTransform(), QtPrivate::intersect_path(), QtPrivate::intersect_point(), QtPrivate::intersect_rect(), QGraphicsSceneBspTreeIndex::itemChange(), QGraphicsViewPrivate::mapToViewRect(), QGraphicsView::paintEvent(), QGraphicsSceneBspTreeIndex::prepareBoundingRectChange(), QGraphicsScenePrivate::processDirtyItemsRecursive(), QGraphicsSceneIndexPrivate::recursive_items_helper(), QGraphicsSceneBspTreeIndexPrivate::removeItem(), and QGraphicsViewPrivate::setUpdateClip().
Definition at line 683 of file qgraphicsitem_p.h.
References QGraphicsItem::d_ptr, QScopedPointer< T, Cleanup >::data(), dirty, dirtyChildren, dirtyChildrenBoundingRect, fullUpdatePending, graphicsEffect, inSetPosHelper, QGraphicsEffect::isEnabled(), notifyBoundingRectChanged, notifyInvalidated, parent, scene, and QGraphicsEffect::source().
Referenced by QGraphicsScenePrivate::markDirty(), QGraphicsItem::prepareGeometryChange(), QGraphicsItem::setFlags(), and setParentItemHelper().
QGraphicsItemCache * QGraphicsItemPrivate::maybeExtraItemCache | ( | ) | const |
Definition at line 5442 of file qgraphicsitem.cpp.
References extra(), and ExtraCacheData.
|
static |
Definition at line 7048 of file qgraphicsitem.cpp.
References _qt_movableAncestorIsSelected(), QGraphicsItem::d_ptr, QGraphicsItem::flags(), QGraphicsItem::isSelected(), item, QGraphicsItem::ItemIsMovable, and parent.
Referenced by QGraphicsItem::mouseMoveEvent().
void QGraphicsItemPrivate::prependGraphicsTransform | ( | QGraphicsTransform * | t | ) |
Definition at line 4144 of file qgraphicsitem.cpp.
References QListSpecialMethodsBase< T >::contains(), dirtySceneTransform, QGraphicsItemPrivate::TransformData::graphicsTransforms, QGraphicsItemPrivate::TransformData::onlyTransform, QList< T >::prepend(), transformChanged(), and transformData.
void QGraphicsItemPrivate::remapItemPos | ( | QEvent * | event, |
QGraphicsItem * | item | ||
) |
Maps any item pos properties of event to item's coordinate system.
Definition at line 1048 of file qgraphicsitem.cpp.
References button, QGraphicsSceneMouseEvent::buttonDownPos(), QGraphicsSceneMouseEvent::buttons(), QEvent::GraphicsSceneContextMenu, QEvent::GraphicsSceneHoverMove, QEvent::GraphicsSceneMouseDoubleClick, QEvent::GraphicsSceneMouseMove, QEvent::GraphicsSceneMousePress, QEvent::GraphicsSceneMouseRelease, QEvent::GraphicsSceneWheel, i, item, QGraphicsItem::mapFromItem(), QGraphicsSceneMouseEvent::pos(), QGraphicsSceneWheelEvent::pos(), QGraphicsSceneContextMenuEvent::pos(), QGraphicsSceneHoverEvent::pos(), QGraphicsSceneMouseEvent::setButtonDownPos(), QGraphicsSceneMouseEvent::setLastPos(), QGraphicsSceneMouseEvent::setPos(), QGraphicsSceneWheelEvent::setPos(), QGraphicsSceneContextMenuEvent::setPos(), and QGraphicsSceneHoverEvent::setPos().
Referenced by QGraphicsItem::sceneEvent().
void QGraphicsItemPrivate::removeChild | ( | QGraphicsItem * | child | ) |
QGraphicsScenePrivate::unregisterTopLevelItem().
Definition at line 5421 of file qgraphicsitem.cpp.
References child, children, emit, holesInSiblingIndex, isObject, q_ptr, QList< T >::removeAt(), QList< T >::removeOne(), sequentialOrdering, and QList< T >::size().
Referenced by setParentItemHelper().
void QGraphicsItemPrivate::removeExtraItemCache | ( | ) |
Definition at line 5464 of file qgraphicsitem.cpp.
References extra(), ExtraCacheData, QGraphicsItemCache::purge(), and unsetExtra().
Referenced by QGraphicsItem::~QGraphicsItem(), and QGraphicsItem::setCacheMode().
void QGraphicsItemPrivate::resetFocusProxy | ( | ) |
Sets the focusProxy pointer to \nullptr for all items that have this item as their focusProxy.
Definition at line 5576 of file qgraphicsitem.cpp.
References QList< T >::at(), QList< T >::clear(), focusProxyRefs, i, and QList< T >::size().
Referenced by QGraphicsItem::~QGraphicsItem(), and QGraphicsScenePrivate::removeItemHelper().
|
virtual |
Reset the height of the item Reimplemented by QGraphicsWidget
Reimplemented in QGraphicsWidgetPrivate.
Definition at line 7706 of file qgraphicsitem.cpp.
|
virtual |
Reset the width of the item Reimplemented by QGraphicsWidget
Reimplemented in QGraphicsWidgetPrivate.
Definition at line 7677 of file qgraphicsitem.cpp.
void QGraphicsItemPrivate::resolveDepth | ( | ) |
Resolves the stacking depth of this object and all its ancestors.
Definition at line 5386 of file qgraphicsitem.cpp.
References QGraphicsItem::d_ptr, itemDepth, parent, and resolveDepth().
Referenced by depth(), and resolveDepth().
Reimplemented in QGraphicsWidgetPrivate.
Definition at line 146 of file qgraphicsitem_p.h.
References i.
Referenced by QGraphicsScene::addItem(), QGraphicsScenePrivate::updateFont(), and QGraphicsWidgetPrivate::updateFont().
Reimplemented in QGraphicsWidgetPrivate.
Definition at line 152 of file qgraphicsitem_p.h.
References i.
Referenced by QGraphicsScene::addItem(), QGraphicsScenePrivate::updatePalette(), and QGraphicsWidgetPrivate::updatePalette().
QRectF QGraphicsItemPrivate::sceneEffectiveBoundingRect | ( | ) | const |
If the item has no effect, this is the same as sceneBoundingRect().
Definition at line 3023 of file qgraphicsitem.cpp.
References QGraphicsItem::d_ptr, QScopedPointer< T, Cleanup >::data(), effectiveBoundingRect(), QTransform::mapRect(), parent, pos, q_ptr, QGraphicsItem::sceneTransform(), transformData, and QRectF::translate().
Referenced by QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex(), and QGraphicsSceneBspTreeIndexPrivate::removeItem().
|
inline |
Definition at line 4622 of file qgraphicsitem.cpp.
References item, QGraphicsItem::itemChange(), QGraphicsItem::ItemScenePositionHasChanged, QGraphicsItem::ItemSendsScenePositionChanges, scene, QGraphicsItem::scenePos(), and scenePosDescendants.
Referenced by QGraphicsItem::setPos(), and QGraphicsItem::setTransform().
void QGraphicsItemPrivate::setEnabledHelper | ( | bool | newEnabled, |
bool | explicitly, | ||
bool | update = true |
||
) |
Sets this item's visibility to newEnabled. If explicitly is true, this item will be "explicitly" newEnabled; otherwise, it.. will not be.
Definition at line 2607 of file qgraphicsitem.cpp.
References child, children, clear(), QGraphicsItem::clearFocus(), emit, explicitlyDisabled, QGraphicsScene::focusItem(), QGraphicsItem::hasFocus(), QGraphicsItem::isAncestorOf(), isObject, QGraphicsItem::isPanel(), QGraphicsItem::isSelected(), isWidget, QGraphicsItem::itemChange(), QGraphicsItem::ItemEnabledChange, QGraphicsItem::ItemEnabledHasChanged, QGraphicsScene::mouseGrabberItem(), QGraphicsItem::parentWidget(), q_ptr, scene, QGraphicsItem::setSelected(), QVariant::toBool(), QGraphicsItem::ungrabMouse(), and QGraphicsItem::update().
Referenced by QGraphicsItem::setEnabled(), and setParentItemHelper().
Definition at line 170 of file qgraphicsitem_p.h.
References i.
Referenced by extraItemCache(), QGraphicsItem::setBoundingRegionGranularity(), QGraphicsItem::setCursor(), and QGraphicsSvgItem::setMaximumCacheSize().
void QGraphicsItemPrivate::setFocusHelper | ( | Qt::FocusReason | focusReason, |
bool | climb, | ||
bool | focusFromHide | ||
) |
Definition at line 3392 of file qgraphicsitem.cpp.
References clearSubFocus(), QGraphicsItem::commonAncestorItem(), QGraphicsItem::d_ptr, QGraphicsScene::focusItem(), focusProxy, focusScopeItem, focusScopeItemChange(), QGraphicsScene::isActive(), QGraphicsItem::isEnabled(), QGraphicsItem::ItemIsFocusable, QGraphicsItem::ItemIsFocusScope, QGraphicsItem::panel(), parent, q_ptr, and scene.
Referenced by QGraphicsItem::setFocus(), and setVisibleHelper().
Set the height of the item Reimplemented by QGraphicsWidget
Reimplemented in QGraphicsWidgetPrivate.
Definition at line 7696 of file qgraphicsitem.cpp.
References Q_UNUSED.
void QGraphicsItemPrivate::setIsMemberOfGroup | ( | bool | enabled | ) |
Propagates item group membership.
Definition at line 1033 of file qgraphicsitem.cpp.
References child, children, enabled, and isMemberOfGroup.
void QGraphicsItemPrivate::setParentItemHelper | ( | QGraphicsItem * | newParent, |
const QVariant * | newParentVariant, | ||
const QVariant * | thisPointerVariant | ||
) |
Make sure not to trigger any pure virtual function calls (e.g., prepareGeometryChange) if the item is in its destructor, i.e. inDestructor is 1.
Definition at line 1201 of file qgraphicsitem.cpp.
References addChild(), QGraphicsScene::addItem(), clearSubFocus(), QGraphicsItem::d_ptr, dirtySceneTransform, emit, enabled, explicitlyDisabled, explicitlyHidden, QGraphicsItem::focusItem(), focusScopeItem, focusScopeItemChange(), graphicsEffect, inDestructor, invalidateDepthRecursively(), QGraphicsItem::isActive(), QGraphicsItem::isAncestorOf(), QGraphicsItem::isEnabled(), isObject, QGraphicsItem::isWidget(), isWidget, QGraphicsItem::itemChange(), QGraphicsItem::ItemChildAddedChange, QGraphicsItem::ItemChildRemovedChange, QGraphicsItem::ItemIsFocusScope, QGraphicsItem::ItemIsPanel, QGraphicsItem::ItemParentChange, QGraphicsItem::ItemParentHasChanged, QGraphicsItem::ItemSendsScenePositionChanges, markParentDirty(), mayHaveChildWithGraphicsEffect, QGraphicsScene::NoIndex, p2, parent, QGraphicsItem::prepareGeometryChange(), q_ptr, removeChild(), QGraphicsScene::removeItem(), QGraphicsItem::scene(), scene, scenePosDescendants, setEnabledHelper(), QGraphicsItem::setFocus(), setSubFocus(), setVisibleHelper(), subFocusItem, transformChanged(), transformData, updateAncestorFlags(), updateChildWithGraphicsEffectFlagRecursively(), and visible.
Referenced by QGraphicsItem::setParentItem().
Sets the position pos.
Definition at line 3808 of file qgraphicsitem.cpp.
References dirtySceneTransform, emit, inSetPosHelper, isObject, pos, q_ptr, scene, QPointF::x(), and QPointF::y().
Referenced by QGraphicsItem::setPos().
void QGraphicsItemPrivate::setSubFocus | ( | QGraphicsItem * | rootItem = nullptr , |
QGraphicsItem * | stopItem = nullptr |
||
) |
Definition at line 5529 of file qgraphicsitem.cpp.
References clearSubFocus(), QGraphicsItem::d_ptr, QGraphicsScene::isActive(), QGraphicsItem::isPanel(), QGraphicsItem::panel(), parent, q_ptr, rootItem(), scene, subFocusItem, subFocusItemChange(), and visible.
Referenced by setParentItemHelper().
void QGraphicsItemPrivate::setTransformHelper | ( | const QTransform & | transform | ) |
Sets the transform transform.
Definition at line 3831 of file qgraphicsitem.cpp.
References dirtySceneTransform, QGraphicsItem::prepareGeometryChange(), q_ptr, QGraphicsItemPrivate::TransformData::transform, transformChanged(), and transformData.
Referenced by QGraphicsItem::setTransform().
void QGraphicsItemPrivate::setVisibleHelper | ( | bool | newVisible, |
bool | explicitly, | ||
bool | update = true , |
||
bool | hiddenByPanel = false |
||
) |
Sets this item's visibility to newVisible. If explicitly is true, this item will be "explicitly" newVisible; otherwise, it.. will not be.
Definition at line 2375 of file qgraphicsitem.cpp.
References child, children, clear(), clearFocusHelper(), QGraphicsItem::d_ptr, done, emit, explicitlyHidden, extra(), ExtraCacheData, fi, QGraphicsScene::focusItem(), focusScopeItem, geometryChanged, QGraphicsItem::hasFocus(), QGraphicsItem::isActive(), QGraphicsItem::isAncestorOf(), isObject, QGraphicsItem::isPanel(), QGraphicsItem::isSelected(), QGraphicsItem::isVisible(), isWidget, QGraphicsItem::itemChange(), QGraphicsItem::ItemClipsChildrenToShape, QGraphicsItem::ItemContainsChildrenInShape, QGraphicsItem::ItemHasNoContents, QGraphicsItem::ItemIsFocusScope, QGraphicsItem::ItemVisibleChange, QGraphicsItem::ItemVisibleHasChanged, QGraphicsItem::NonModal, Qt::OtherFocusReason, paintedViewBoundingRectsNeedRepaint, panelModality, parent, QGraphicsItem::parentWidget(), Qt::Popup, QGraphicsItemCache::purge(), q_ptr, scene, QGraphicsScene::setActivePanel(), QGraphicsItem::setFocus(), setFocusHelper(), QGraphicsScene::setFocusItem(), QGraphicsItem::setSelected(), subFocusItem, QVariant::toBool(), visible, widget, and QWidget::windowType().
Referenced by setParentItemHelper(), and QGraphicsItem::setVisible().
Set the width of the item Reimplemented by QGraphicsWidget
Reimplemented in QGraphicsWidgetPrivate.
Definition at line 7667 of file qgraphicsitem.cpp.
References Q_UNUSED.
|
virtual |
Subclasses can reimplement this function to be notified when its siblingIndex order is changed.
Definition at line 5610 of file qgraphicsitem.cpp.
Referenced by QGraphicsItem::stackBefore().
|
virtual |
Subclasses can reimplement this function to be notified when subFocusItem changes.
Definition at line 5589 of file qgraphicsitem.cpp.
Referenced by clearSubFocus(), and setSubFocus().
|
inlinevirtual |
Definition at line 123 of file qgraphicsitem_p.h.
Referenced by appendGraphicsTransform(), prependGraphicsTransform(), setParentItemHelper(), QGraphicsItem::setRotation(), QGraphicsItem::setScale(), QGraphicsItem::setTransformations(), and setTransformHelper().
|
inline |
Definition at line 645 of file qgraphicsitem_p.h.
References combineTransformToParent().
Referenced by childrenBoundingRectHelper(), QGraphicsItem::mapFromParent(), QGraphicsItem::mapFromParent(), QGraphicsItem::mapFromParent(), QGraphicsItem::mapFromParent(), QGraphicsItem::mapRectFromParent(), QGraphicsItem::mapRectToParent(), QGraphicsItem::mapToParent(), QGraphicsItem::mapToParent(), QGraphicsItem::mapToParent(), and QGraphicsItem::mapToParent().
Definition at line 187 of file qgraphicsitem_p.h.
References i.
Referenced by removeExtraItemCache(), QGraphicsItem::setBoundingRegionGranularity(), and QGraphicsItem::unsetCursor().
void QGraphicsItemPrivate::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. If root is false, the flag is also set on this item (default is true).
Definition at line 928 of file qgraphicsitem.cpp.
References AncestorClipsChildren, AncestorContainsChildren, AncestorFiltersChildEvents, ancestorFlags, AncestorHandlesChildEvents, AncestorIgnoresTransformations, QList< T >::at(), children, QGraphicsItem::d_ptr, filtersDescendantEvents, flags, handlesChildEvents, i, QGraphicsItem::ItemClipsChildrenToShape, QGraphicsItem::ItemContainsChildrenInShape, QGraphicsItem::ItemIgnoresTransformations, parent, QList< T >::size(), and updateAncestorFlag().
Referenced by QGraphicsItem::setFiltersChildEvents(), QGraphicsItem::setFlags(), QGraphicsItem::setHandlesChildEvents(), and updateAncestorFlag().
void QGraphicsItemPrivate::updateAncestorFlags | ( | ) |
Definition at line 998 of file qgraphicsitem.cpp.
References AncestorClipsChildren, AncestorContainsChildren, AncestorFiltersChildEvents, ancestorFlags, AncestorHandlesChildEvents, AncestorIgnoresTransformations, QList< T >::at(), children, QGraphicsItem::d_ptr, QScopedPointer< T, Cleanup >::data(), filtersDescendantEvents, flags, handlesChildEvents, i, QGraphicsItem::ItemClipsChildrenToShape, QGraphicsItem::ItemContainsChildrenInShape, QGraphicsItem::ItemIgnoresTransformations, parent, QList< T >::size(), and updateAncestorFlags().
Referenced by setParentItemHelper(), and updateAncestorFlags().
void QGraphicsItemPrivate::updateChildWithGraphicsEffectFlagRecursively | ( | ) |
Returns a pointer to this item's effect if it has one; otherwise \nullptr.
Definition at line 2923 of file qgraphicsitem.cpp.
References QGraphicsItem::d_ptr, QScopedPointer< T, Cleanup >::data(), mayHaveChildWithGraphicsEffect, and parent.
Referenced by setParentItemHelper().
void QGraphicsItemPrivate::updatePaintedViewBoundingRects | ( | bool | updateChildren | ) |
Definition at line 5474 of file qgraphicsitem.cpp.
References QList< T >::at(), children, QGraphicsItem::d_ptr, QGraphicsViewPrivate::dirtyScrollOffset, i, paintedViewBoundingRects, rect, scene, QList< T >::size(), updatePaintedViewBoundingRects(), QGraphicsViewPrivate::updateRect(), QHash< Key, T >::value(), and QGraphicsScene::views().
Referenced by QGraphicsItem::setFlags(), and updatePaintedViewBoundingRects().
|
virtual |
Definition at line 1158 of file qgraphicsitem.cpp.
References QGraphicsItemPrivate::TransformData::computedFullTransform(), QGraphicsItem::d_ptr, dirtySceneTransform, QTransform::dx(), QTransform::dy(), QTransform::fromTranslate(), QPointF::isNull(), QGraphicsItemPrivate::TransformData::onlyTransform, parent, pos, Q_ASSERT, sceneTransform, sceneTransformTranslateOnly, QGraphicsItemPrivate::TransformData::transform, transformData, QTransform::translate(), QTransform::TxTranslate, QTransform::type(), QPointF::x(), and QPointF::y().
Referenced by QGraphicsScenePrivate::drawSubtreeRecursive(), ensureSceneTransformRecursive(), QGraphicsScenePrivate::processDirtyItemsRecursive(), and QGraphicsSceneIndexPrivate::recursive_items_helper().
|
virtual |
Returns the width of the item Reimplemented by QGraphicsWidget
Reimplemented in QGraphicsWidgetPrivate.
Definition at line 7657 of file qgraphicsitem.cpp.
quint32 QGraphicsItemPrivate::acceptDrops |
Definition at line 373 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::acceptDrops(), and QGraphicsItem::setAcceptDrops().
quint32 QGraphicsItemPrivate::acceptedMouseButtons |
Definition at line 366 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::acceptedMouseButtons(), and QGraphicsItem::setAcceptedMouseButtons().
quint32 QGraphicsItemPrivate::acceptedTouchBeginEvent |
Definition at line 400 of file qgraphicsitem_p.h.
Referenced by QGraphicsScenePrivate::sendTouchBeginEvent(), and QGraphicsScenePrivate::touchEventHandler().
quint32 QGraphicsItemPrivate::acceptsHover |
Definition at line 372 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::acceptHoverEvents(), QGraphicsScenePrivate::itemAcceptsHoverEvents_helper(), and QGraphicsItem::setAcceptHoverEvents().
quint32 QGraphicsItemPrivate::acceptTouchEvents |
Definition at line 399 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::acceptTouchEvents(), QGraphicsScene::addItem(), and QGraphicsItem::setAcceptTouchEvents().
quint32 QGraphicsItemPrivate::allChildrenDirty |
Definition at line 387 of file qgraphicsitem_p.h.
Referenced by QGraphicsScenePrivate::markDirty(), QGraphicsScenePrivate::processDirtyItemsRecursive(), and QGraphicsScenePrivate::resetDirtyItem().
quint32 QGraphicsItemPrivate::ancestorFlags |
Definition at line 378 of file qgraphicsitem_p.h.
Referenced by QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex(), QGraphicsItem::addToIndex(), QGraphicsItem::collidesWithItem(), QGraphicsItem::deviceTransform(), effectiveBoundingRect(), QGraphicsScenePrivate::filterDescendantEvent(), QGraphicsSceneBspTreeIndex::itemChange(), QGraphicsItem::mouseMoveEvent(), QGraphicsSceneBspTreeIndex::prepareBoundingRectChange(), QGraphicsItem::removeFromIndex(), QGraphicsSceneBspTreeIndexPrivate::removeItem(), QGraphicsItem::sceneEvent(), updateAncestorFlag(), and updateAncestorFlags().
quint32 QGraphicsItemPrivate::cacheMode |
Definition at line 379 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::cacheMode(), QGraphicsScenePrivate::draw(), QGraphicsScenePrivate::drawItemHelper(), QGraphicsItem::setCacheMode(), and QGraphicsItem::update().
QList<QGraphicsItem *> QGraphicsItemPrivate::children |
Definition at line 347 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::~QGraphicsItem(), addChild(), QGraphicsScene::addItem(), QGraphicsSceneBspTreeIndexPrivate::addItem(), QGraphicsItem::childItems(), childrenBoundingRectHelper(), QGraphicsSceneBspTreeIndexPrivate::climbTree(), QGraphicsScenePrivate::draw(), QGraphicsScenePrivate::drawSubtreeRecursive(), ensureSequentialSiblingIndex(), ensureSortedChildren(), invalidateDepthRecursively(), QStandardItemModel::mimeData(), QGraphicsSceneBspTreeIndex::prepareBoundingRectChange(), QGraphicsScenePrivate::processDirtyItemsRecursive(), QGraphicsSceneIndexPrivate::recursive_items_helper(), removeChild(), QGraphicsSceneBspTreeIndexPrivate::removeItem(), QGraphicsScenePrivate::removeItemHelper(), QGraphicsScenePrivate::resetDirtyItem(), QGraphicsItem::sceneEvent(), setEnabledHelper(), setIsMemberOfGroup(), QGraphicsWidgetPrivate::setLayoutDirection_helper(), setVisibleHelper(), QGraphicsItem::stackBefore(), QGraphicsProxyWidgetPrivate::unembedSubWindow(), updateAncestorFlag(), updateAncestorFlags(), QGraphicsWidgetPrivate::updateFont(), updatePaintedViewBoundingRects(), and QGraphicsWidgetPrivate::updatePalette().
QRectF QGraphicsItemPrivate::childrenBoundingRect |
Definition at line 339 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::childrenBoundingRect().
quint32 QGraphicsItemPrivate::dirty |
Definition at line 382 of file qgraphicsitem_p.h.
Referenced by QGraphicsScenePrivate::markDirty(), markParentDirty(), QGraphicsScenePrivate::processDirtyItemsRecursive(), and QGraphicsScenePrivate::resetDirtyItem().
quint32 QGraphicsItemPrivate::dirtyChildren |
Definition at line 383 of file qgraphicsitem_p.h.
Referenced by QGraphicsScenePrivate::markDirty(), markParentDirty(), QGraphicsScenePrivate::processDirtyItemsRecursive(), and QGraphicsScenePrivate::resetDirtyItem().
quint32 QGraphicsItemPrivate::dirtyChildrenBoundingRect |
Definition at line 419 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::childrenBoundingRect(), markParentDirty(), and QGraphicsItem::setFlags().
quint32 QGraphicsItemPrivate::dirtySceneTransform |
Definition at line 393 of file qgraphicsitem_p.h.
Referenced by appendGraphicsTransform(), QGraphicsScenePrivate::drawSubtreeRecursive(), ensureSceneTransformRecursive(), QtPrivate::intersect_path(), QtPrivate::intersect_point(), QtPrivate::intersect_rect(), prependGraphicsTransform(), QGraphicsScenePrivate::processDirtyItemsRecursive(), QGraphicsSceneIndexPrivate::recursive_items_helper(), QGraphicsTransformPrivate::setItem(), setParentItemHelper(), setPosHelper(), QGraphicsItem::setRotation(), QGraphicsItem::setScale(), QGraphicsItem::setTransformations(), setTransformHelper(), QGraphicsItem::setTransformOriginPoint(), QGraphicsTransformPrivate::updateItem(), and updateSceneTransformFromParent().
quint32 QGraphicsItemPrivate::enabled |
Definition at line 369 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::isEnabled(), setIsMemberOfGroup(), setParentItemHelper(), and QGraphicsItem::setSelected().
quint32 QGraphicsItemPrivate::explicitActivate |
Definition at line 410 of file qgraphicsitem_p.h.
Referenced by QGraphicsScene::addItem(), and QGraphicsItem::setActive().
quint32 QGraphicsItemPrivate::explicitlyDisabled |
Definition at line 370 of file qgraphicsitem_p.h.
Referenced by setEnabledHelper(), and setParentItemHelper().
quint32 QGraphicsItemPrivate::explicitlyHidden |
Definition at line 368 of file qgraphicsitem_p.h.
Referenced by QGraphicsScenePrivate::_q_polishItems(), QGraphicsLayoutItem::isEmpty(), QGraphicsItem::isVisibleTo(), setParentItemHelper(), and setVisibleHelper().
QList<ExtraStruct> QGraphicsItemPrivate::extras |
Definition at line 210 of file qgraphicsitem_p.h.
quint32 QGraphicsItemPrivate::filtersDescendantEvents |
Definition at line 401 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::filtersChildEvents(), QGraphicsItem::setFiltersChildEvents(), updateAncestorFlag(), and updateAncestorFlags().
quint32 QGraphicsItemPrivate::flags |
Definition at line 391 of file qgraphicsitem_p.h.
Referenced by QGraphicsScene::addItem(), QGraphicsScenePrivate::draw(), QGraphicsScenePrivate::drawSubtreeRecursive(), QGraphicsItem::flags(), QGraphicsItem::isPanel(), QGraphicsSceneBspTreeIndex::itemChange(), QGraphicsScenePrivate::markDirty(), QGraphicsScenePrivate::mousePressEventHandler(), QGraphicsItem::panel(), QGraphicsScenePrivate::processDirtyItemsRecursive(), QGraphicsSceneIndexPrivate::recursive_items_helper(), QGraphicsScenePrivate::sendTouchBeginEvent(), QGraphicsItem::setFlag(), QGraphicsItem::setFlags(), QGraphicsItem::setOpacity(), QGraphicsItem::setPos(), QGraphicsItem::setRotation(), QGraphicsItem::setScale(), QGraphicsItem::setSelected(), QGraphicsItem::setTransform(), QGraphicsItem::setTransformOriginPoint(), QGraphicsItem::setZValue(), updateAncestorFlag(), updateAncestorFlags(), and QGraphicsViewPrivate::updateInputMethodSensitivity().
QGraphicsItem* QGraphicsItemPrivate::focusProxy |
Definition at line 355 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::focusProxy(), QGraphicsItem::hasFocus(), setFocusHelper(), and QGraphicsItem::setFocusProxy().
QList<QGraphicsItem **> QGraphicsItemPrivate::focusProxyRefs |
Definition at line 356 of file qgraphicsitem_p.h.
Referenced by resetFocusProxy(), and QGraphicsItem::setFocusProxy().
QGraphicsItem* QGraphicsItemPrivate::focusScopeItem |
Definition at line 358 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::~QGraphicsItem(), clearFocusHelper(), QGraphicsItem::focusScopeItem(), setFocusHelper(), setParentItemHelper(), and setVisibleHelper().
quint32 QGraphicsItemPrivate::fullUpdatePending |
Definition at line 388 of file qgraphicsitem_p.h.
Referenced by discardUpdateRequest(), QGraphicsScenePrivate::markDirty(), markParentDirty(), QGraphicsScenePrivate::processDirtyItemsRecursive(), QGraphicsScenePrivate::resetDirtyItem(), and QGraphicsItem::update().
quint32 QGraphicsItemPrivate::geometryChanged |
Definition at line 394 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::prepareGeometryChange(), QGraphicsScenePrivate::processDirtyItemsRecursive(), QGraphicsScenePrivate::resetDirtyItem(), and setVisibleHelper().
QMap<Qt::GestureType, Qt::GestureFlags> QGraphicsItemPrivate::gestureContext |
Definition at line 362 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::~QGraphicsItem(), QGraphicsScene::addItem(), and QGraphicsScenePrivate::removeItemHelper().
int QGraphicsItemPrivate::globalStackingOrder |
QGraphicsEffect* QGraphicsItemPrivate::graphicsEffect |
Definition at line 350 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::~QGraphicsItem(), QGraphicsScenePrivate::drawSubtreeRecursive(), effectiveBoundingRect(), effectiveBoundingRect(), QGraphicsScenePrivate::markDirty(), markParentDirty(), QGraphicsScenePrivate::processDirtyItemsRecursive(), QGraphicsScenePrivate::resetDirtyItem(), and setParentItemHelper().
quint32 QGraphicsItemPrivate::handlesChildEvents |
Definition at line 375 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::handlesChildEvents(), QGraphicsItem::setHandlesChildEvents(), updateAncestorFlag(), and updateAncestorFlags().
quint32 QGraphicsItemPrivate::hasBoundingRegionGranularity |
Definition at line 380 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::boundingRegionGranularity(), and QGraphicsItem::setBoundingRegionGranularity().
quint32 QGraphicsItemPrivate::hasCursor |
Definition at line 377 of file qgraphicsitem_p.h.
Referenced by QGraphicsScene::addItem(), QGraphicsItem::hasCursor(), QGraphicsItem::setCursor(), and QGraphicsItem::unsetCursor().
quint32 QGraphicsItemPrivate::holesInSiblingIndex |
Definition at line 412 of file qgraphicsitem_p.h.
Referenced by ensureSequentialSiblingIndex(), and removeChild().
quint32 QGraphicsItemPrivate::ignoreOpacity |
Definition at line 398 of file qgraphicsitem_p.h.
Referenced by discardUpdateRequest(), QGraphicsScenePrivate::markDirty(), QGraphicsScenePrivate::processDirtyItemsRecursive(), and QGraphicsScenePrivate::resetDirtyItem().
quint32 QGraphicsItemPrivate::ignoreVisible |
Definition at line 397 of file qgraphicsitem_p.h.
Referenced by discardUpdateRequest(), QGraphicsScenePrivate::markDirty(), QGraphicsScenePrivate::processDirtyItemsRecursive(), and QGraphicsScenePrivate::resetDirtyItem().
Qt::InputMethodHints QGraphicsItemPrivate::imHints |
Definition at line 359 of file qgraphicsitem_p.h.
quint32 QGraphicsItemPrivate::inDestructor |
Definition at line 395 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::~QGraphicsItem(), clearFocusHelper(), QGraphicsItem::prepareGeometryChange(), QGraphicsSceneBspTreeIndexPrivate::removeItem(), QGraphicsScenePrivate::removeItemHelper(), setParentItemHelper(), QGraphicsItem::setPos(), QGraphicsItem::setX(), and QGraphicsItem::setY().
int QGraphicsItemPrivate::index |
Definition at line 352 of file qgraphicsitem_p.h.
Referenced by QGraphicsSceneBspTreeIndex::~QGraphicsSceneBspTreeIndex(), QGraphicsSceneBspTreeIndexPrivate::addItem(), QGraphicsSceneBspTreeIndex::clear(), QGraphicsSceneBspTreeIndex::prepareBoundingRectChange(), QGraphicsSceneBspTreeIndexPrivate::removeItem(), and QGraphicsSceneBspTreeIndexPrivate::resetIndex().
quint32 QGraphicsItemPrivate::inSetPosHelper |
Definition at line 385 of file qgraphicsitem_p.h.
Referenced by markParentDirty(), QGraphicsItem::prepareGeometryChange(), and setPosHelper().
quint32 QGraphicsItemPrivate::isMemberOfGroup |
Definition at line 374 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::group(), and setIsMemberOfGroup().
quint32 QGraphicsItemPrivate::isObject |
Definition at line 396 of file qgraphicsitem_p.h.
Referenced by QGraphicsObject::QGraphicsObject(), QGraphicsItem::~QGraphicsItem(), addChild(), removeChild(), setEnabledHelper(), QGraphicsItem::setOpacity(), setParentItemHelper(), setPosHelper(), QGraphicsItem::setRotation(), QGraphicsItem::setScale(), setVisibleHelper(), QGraphicsItem::setZValue(), QGraphicsItem::toGraphicsObject(), QGraphicsItem::toGraphicsObject(), and QGraphicsScenePrivate::ungrabGesture().
quint32 QGraphicsItemPrivate::isWidget |
Definition at line 381 of file qgraphicsitem_p.h.
Referenced by QGraphicsScenePrivate::_q_polishItems(), QGraphicsScenePrivate::draw(), QGraphicsWidgetPrivate::init(), QGraphicsItem::isWidget(), QGraphicsItem::isWindow(), QGraphicsScenePrivate::itemAcceptsHoverEvents_helper(), QGraphicsItem::mousePressEvent(), QGraphicsItem::sceneEvent(), setEnabledHelper(), QGraphicsItem::setFlags(), setParentItemHelper(), QGraphicsItem::setPos(), setVisibleHelper(), and QGraphicsViewPrivate::updateInputMethodSensitivity().
int QGraphicsItemPrivate::itemDepth |
Definition at line 354 of file qgraphicsitem_p.h.
Referenced by depth(), invalidateDepthRecursively(), and resolveDepth().
quint32 QGraphicsItemPrivate::itemDiscovered |
Definition at line 376 of file qgraphicsitem_p.h.
Referenced by QGraphicsSceneBspTreeIndex::~QGraphicsSceneBspTreeIndex(), QGraphicsSceneBspTreeIndexPrivate::_q_updateIndex(), QGraphicsSceneBspTreeIndex::clear(), QGraphicsScene::drawItems(), QGraphicsSceneBspTreeIndexPrivate::removeItem(), and QGraphicsSceneBspTreeIndexPrivate::resetIndex().
quint32 QGraphicsItemPrivate::localCollisionHack |
Definition at line 384 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::collidesWithItem(), and QGraphicsItem::collidesWithPath().
quint32 QGraphicsItemPrivate::mayHaveChildWithGraphicsEffect |
Definition at line 417 of file qgraphicsitem_p.h.
Referenced by setParentItemHelper(), and updateChildWithGraphicsEffectFlagRecursively().
quint32 QGraphicsItemPrivate::mouseSetsFocus |
Definition at line 409 of file qgraphicsitem_p.h.
Referenced by QGraphicsScenePrivate::mousePressEventHandler(), QGraphicsScenePrivate::sendTouchBeginEvent(), and QGraphicsScene::wheelEvent().
quint32 QGraphicsItemPrivate::needSortChildren |
Definition at line 386 of file qgraphicsitem_p.h.
Referenced by addChild(), ensureSequentialSiblingIndex(), ensureSortedChildren(), QGraphicsItem::setFlags(), and QGraphicsItem::setZValue().
QRectF QGraphicsItemPrivate::needsRepaint |
Definition at line 340 of file qgraphicsitem_p.h.
Referenced by QGraphicsScenePrivate::markDirty(), QGraphicsScenePrivate::processDirtyItemsRecursive(), and QGraphicsScenePrivate::resetDirtyItem().
quint32 QGraphicsItemPrivate::notifyBoundingRectChanged |
Definition at line 403 of file qgraphicsitem_p.h.
Referenced by markParentDirty(), QGraphicsItem::prepareGeometryChange(), and QGraphicsScenePrivate::resetDirtyItem().
quint32 QGraphicsItemPrivate::notifyInvalidated |
Definition at line 408 of file qgraphicsitem_p.h.
Referenced by markParentDirty(), and QGraphicsScenePrivate::resetDirtyItem().
qreal QGraphicsItemPrivate::opacity |
Definition at line 344 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::opacity(), and QGraphicsItem::setOpacity().
quint32 QGraphicsItemPrivate::padding |
Definition at line 420 of file qgraphicsitem_p.h.
Definition at line 341 of file qgraphicsitem_p.h.
Referenced by QGraphicsScenePrivate::drawSubtreeRecursive(), QGraphicsScenePrivate::markDirty(), QGraphicsView::paintEvent(), QGraphicsScenePrivate::processDirtyItemsRecursive(), and updatePaintedViewBoundingRects().
quint32 QGraphicsItemPrivate::paintedViewBoundingRectsNeedRepaint |
Definition at line 392 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::prepareGeometryChange(), QGraphicsScenePrivate::processDirtyItemsRecursive(), QGraphicsScenePrivate::resetDirtyItem(), QGraphicsItem::setOpacity(), and setVisibleHelper().
QGraphicsItem::PanelModality QGraphicsItemPrivate::panelModality |
Definition at line 360 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::panelModality(), QGraphicsItem::setFlags(), QGraphicsItem::setPanelModality(), and setVisibleHelper().
QGraphicsItem* QGraphicsItemPrivate::parent |
Definition at line 346 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::~QGraphicsItem(), QGraphicsScenePrivate::_q_updateScenePosDescendants(), QGraphicsSceneBspTreeIndexPrivate::_q_updateSortCache(), QGraphicsScene::addItem(), clearFocusHelper(), clearSubFocus(), QGraphicsItem::commonAncestorItem(), effectiveBoundingRect(), ensureSceneTransformRecursive(), QGraphicsSceneBspTreeIndexPrivate::estimateItems(), QGraphicsWidgetPrivate::fixFocusChainBeforeReparenting(), QGraphicsSvgItemPrivate::init(), QGraphicsItem::isAncestorOf(), QGraphicsSceneBspTree::items(), QGraphicsItem::itemTransform(), QGraphicsViewPrivate::mapToViewRect(), QGraphicsScenePrivate::markDirty(), markParentDirty(), movableAncestorIsSelected(), QGraphicsWidgetPrivate::naturalWidgetFont(), QGraphicsWidgetPrivate::naturalWidgetPalette(), QGraphicsItem::panel(), QGraphicsItem::parentItem(), QGraphicsItem::parentObject(), QGraphicsItemGroup::removeFromGroup(), resolveDepth(), QGraphicsItem::sceneBoundingRect(), sceneEffectiveBoundingRect(), QGraphicsItem::sceneEvent(), QGraphicsItem::setActive(), QGraphicsItem::setFlags(), setFocusHelper(), QGraphicsItem::setParentItem(), setParentItemHelper(), QGraphicsScenePrivate::setScenePosItemEnabled(), setSubFocus(), setVisibleHelper(), QGraphicsProxyWidgetPrivate::setWidget_helper(), QGraphicsItem::setZValue(), QGraphicsItem::stackBefore(), updateAncestorFlag(), updateAncestorFlags(), updateChildWithGraphicsEffectFlagRecursively(), and updateSceneTransformFromParent().
quint32 QGraphicsItemPrivate::pendingPolish |
Definition at line 416 of file qgraphicsitem_p.h.
Referenced by QGraphicsScenePrivate::_q_polishItems(), QGraphicsScene::addItem(), and QGraphicsScenePrivate::removeItemHelper().
QPointF QGraphicsItemPrivate::pos |
Definition at line 342 of file qgraphicsitem_p.h.
Referenced by childrenBoundingRectHelper(), combineTransformFromParent(), combineTransformToParent(), genericMapFromScene(), QGraphicsItem::itemTransform(), QGraphicsItem::mapFromParent(), QGraphicsItem::mapFromParent(), QGraphicsItem::mapFromParent(), QGraphicsItem::mapFromParent(), QGraphicsItem::mapRectFromParent(), QGraphicsItem::mapRectToParent(), QGraphicsItem::mapToParent(), QGraphicsItem::mapToParent(), QGraphicsItem::mapToParent(), QGraphicsItem::mapToParent(), QGraphicsProxyWidgetPrivate::mapToReceiver(), QGraphicsViewPrivate::mapToViewRect(), QGraphicsItem::mouseMoveEvent(), QGraphicsItem::pos(), QGraphicsItem::sceneBoundingRect(), sceneEffectiveBoundingRect(), QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent(), QGraphicsWidgetPrivate::setGeometryFromSetPos(), QGraphicsItem::setPos(), setPosHelper(), QGraphicsItem::setX(), QGraphicsItem::setY(), updateSceneTransformFromParent(), QGraphicsWidgetPrivate::windowFrameHoverMoveEvent(), and QGraphicsWidgetPrivate::windowFrameMouseReleaseEvent().
QGraphicsItem* QGraphicsItemPrivate::q_ptr |
Definition at line 424 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::QGraphicsItem(), QGraphicsItem::QGraphicsItem(), addChild(), clearFocusHelper(), clearSubFocus(), combineTransformFromParent(), combineTransformToParent(), effectiveBoundingRect(), ensureSceneTransformRecursive(), QGraphicsWidgetPrivate::fixFocusChainBeforeReparenting(), initStyleOption(), removeChild(), sceneEffectiveBoundingRect(), setEnabledHelper(), setFocusHelper(), setParentItemHelper(), setPosHelper(), setSubFocus(), setTransformHelper(), and setVisibleHelper().
QGraphicsScene* QGraphicsItemPrivate::scene |
Definition at line 345 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::~QGraphicsItem(), QGraphicsScene::addItem(), QGraphicsItem::addToIndex(), clearFocusHelper(), QGraphicsItem::collidingItems(), discardUpdateRequest(), effectiveBoundingRect(), effectiveBoundingRect(), QGraphicsItem::ensureVisible(), QGraphicsItem::grabKeyboard(), QGraphicsItem::grabMouse(), QGraphicsItem::hasFocus(), initStyleOption(), QGraphicsItem::installSceneEventFilter(), QGraphicsItem::isActive(), QGraphicsItem::isBlockedByModalPanel(), markParentDirty(), QGraphicsItem::mouseMoveEvent(), QGraphicsItem::mousePressEvent(), QGraphicsItem::mouseReleaseEvent(), QGraphicsWidgetPrivate::naturalWidgetFont(), QGraphicsWidgetPrivate::naturalWidgetPalette(), QGraphicsItem::prepareGeometryChange(), QGraphicsItem::removeFromIndex(), QGraphicsItem::removeSceneEventFilter(), QGraphicsWidgetPrivate::resolveLayoutDirection(), QGraphicsItem::scene(), QGraphicsItem::sceneEvent(), sendScenePosChange(), QGraphicsItem::setAcceptedMouseButtons(), QGraphicsItem::setAcceptHoverEvents(), QGraphicsItem::setAcceptTouchEvents(), QGraphicsItem::setActive(), QGraphicsItem::setCursor(), setEnabledHelper(), QGraphicsItem::setFlags(), setFocusHelper(), QGraphicsItem::setFocusProxy(), QGraphicsItem::setOpacity(), QGraphicsItem::setPanelModality(), setParentItemHelper(), setPosHelper(), QGraphicsItem::setSelected(), setSubFocus(), setVisibleHelper(), QGraphicsItem::setZValue(), QGraphicsItem::stackBefore(), QGraphicsProxyWidgetPrivate::unembedSubWindow(), QGraphicsItem::ungrabKeyboard(), QGraphicsItem::ungrabMouse(), QGraphicsItem::unsetCursor(), QGraphicsItem::update(), and updatePaintedViewBoundingRects().
quint32 QGraphicsItemPrivate::scenePosDescendants |
Definition at line 415 of file qgraphicsitem_p.h.
Referenced by QGraphicsScenePrivate::_q_updateScenePosDescendants(), sendScenePosChange(), setParentItemHelper(), QGraphicsItem::setPos(), QGraphicsScenePrivate::setScenePosItemEnabled(), and QGraphicsItem::setTransform().
QTransform QGraphicsItemPrivate::sceneTransform |
Definition at line 351 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::deviceTransform(), QGraphicsView::fitInView(), genericMapFromSceneTransform(), QtPrivate::intersect_path(), QtPrivate::intersect_point(), QtPrivate::intersect_rect(), QGraphicsItem::itemTransform(), QGraphicsItem::mapFromScene(), QGraphicsItem::mapFromScene(), QGraphicsItem::mapFromScene(), QGraphicsItem::mapFromScene(), QGraphicsItem::mapRectFromScene(), QGraphicsItem::mapRectToScene(), QGraphicsItem::mapToScene(), QGraphicsItem::mapToScene(), QGraphicsItem::mapToScene(), QGraphicsItem::mapToScene(), QGraphicsItem::prepareGeometryChange(), QGraphicsScenePrivate::processDirtyItemsRecursive(), QGraphicsSceneIndexPrivate::recursive_items_helper(), QGraphicsItem::sceneBoundingRect(), QGraphicsItem::sceneTransform(), QGraphicsViewPrivate::setUpdateClip(), and updateSceneTransformFromParent().
quint32 QGraphicsItemPrivate::sceneTransformTranslateOnly |
Definition at line 402 of file qgraphicsitem_p.h.
Referenced by QtPrivate::intersect_path(), QtPrivate::intersect_point(), QtPrivate::intersect_rect(), QGraphicsScenePrivate::processDirtyItemsRecursive(), QGraphicsSceneIndexPrivate::recursive_items_helper(), QGraphicsViewPrivate::setUpdateClip(), and updateSceneTransformFromParent().
quint32 QGraphicsItemPrivate::selected |
Definition at line 371 of file qgraphicsitem_p.h.
Referenced by initStyleOption(), QGraphicsItem::isSelected(), QGraphicsItem::mousePressEvent(), QGraphicsItem::mouseReleaseEvent(), and QGraphicsItem::setSelected().
quint32 QGraphicsItemPrivate::sendParentChangeNotification |
Definition at line 418 of file qgraphicsitem_p.h.
quint32 QGraphicsItemPrivate::sequentialOrdering |
Definition at line 413 of file qgraphicsitem_p.h.
Referenced by ensureSequentialSiblingIndex(), ensureSortedChildren(), and removeChild().
int QGraphicsItemPrivate::siblingIndex |
Definition at line 353 of file qgraphicsitem_p.h.
Referenced by ensureSortedChildren(), QGraphicsScenePrivate::registerTopLevelItem(), QGraphicsItem::stackBefore(), and QGraphicsScenePrivate::unregisterTopLevelItem().
QGraphicsItem* QGraphicsItemPrivate::subFocusItem |
Definition at line 357 of file qgraphicsitem_p.h.
Referenced by clearFocusHelper(), clearSubFocus(), QGraphicsItem::focusItem(), setParentItemHelper(), setSubFocus(), and setVisibleHelper().
TransformData* QGraphicsItemPrivate::transformData |
Definition at line 349 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::~QGraphicsItem(), appendGraphicsTransform(), childrenBoundingRectHelper(), combineTransformFromParent(), combineTransformToParent(), QGraphicsItem::deviceTransform(), QGraphicsItem::itemTransform(), QGraphicsItem::mapFromParent(), QGraphicsItem::mapFromParent(), QGraphicsItem::mapFromParent(), QGraphicsItem::mapFromParent(), QGraphicsItem::mapRectFromParent(), QGraphicsItem::mapRectToParent(), QGraphicsItem::mapToParent(), QGraphicsItem::mapToParent(), QGraphicsItem::mapToParent(), QGraphicsItem::mapToParent(), QGraphicsViewPrivate::mapToViewRect(), QGraphicsItem::mouseMoveEvent(), prependGraphicsTransform(), QGraphicsItem::rotation(), QGraphicsItem::scale(), QGraphicsItem::sceneBoundingRect(), sceneEffectiveBoundingRect(), QGraphicsTransformPrivate::setItem(), setParentItemHelper(), QGraphicsItem::setRotation(), QGraphicsItem::setScale(), QGraphicsItem::setTransform(), QGraphicsItem::setTransformations(), setTransformHelper(), QGraphicsItem::setTransformOriginPoint(), QGraphicsItem::transform(), QGraphicsItem::transformations(), QGraphicsItem::transformOriginPoint(), and updateSceneTransformFromParent().
quint32 QGraphicsItemPrivate::updateDueToGraphicsEffect |
Definition at line 414 of file qgraphicsitem_p.h.
quint32 QGraphicsItemPrivate::visible |
Definition at line 367 of file qgraphicsitem_p.h.
Referenced by discardUpdateRequest(), QGraphicsScenePrivate::drawSubtreeRecursive(), QGraphicsItem::grabKeyboard(), QGraphicsItem::grabMouse(), QGraphicsItem::isVisible(), QGraphicsSceneBspTree::items(), QGraphicsScenePrivate::processDirtyItemsRecursive(), QGraphicsSceneIndexPrivate::recursive_items_helper(), QGraphicsItem::sceneEvent(), setParentItemHelper(), QGraphicsItem::setSelected(), setSubFocus(), and setVisibleHelper().
quint32 QGraphicsItemPrivate::wantsActive |
Definition at line 411 of file qgraphicsitem_p.h.
Referenced by QGraphicsScene::addItem(), and QGraphicsItem::setActive().
qreal QGraphicsItemPrivate::z |
Definition at line 343 of file qgraphicsitem_p.h.
Referenced by QGraphicsItem::setFlags(), QGraphicsItem::setZValue(), and QGraphicsItem::zValue().