QtBase
v6.3.1
|
#include <qgraphicsscene_p.h>
Classes | |
struct | UpdatedRectsCmp |
Static Public Member Functions | |
static QGraphicsScenePrivate * | get (QGraphicsScene *q) |
static void | updateTouchPointsForItem (QGraphicsItem *item, QTouchEvent *touchEvent) |
Static Public Member Functions inherited from QObjectPrivate | |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
static bool | disconnect (Connection *c) |
Additional Inherited Members | |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Definition at line 83 of file qgraphicsscene_p.h.
QGraphicsScenePrivate::QGraphicsScenePrivate | ( | ) |
Definition at line 282 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::_q_emitUpdated | ( | ) |
Definition at line 349 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::_q_polishItems | ( | ) |
Definition at line 442 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::_q_processDirtyItems | ( | ) |
void QGraphicsScenePrivate::_q_updateLater | ( | ) |
void QGraphicsScenePrivate::_q_updateScenePosDescendants | ( | ) |
Definition at line 558 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::addPopup | ( | QGraphicsWidget * | widget | ) |
void QGraphicsScenePrivate::addView | ( | QGraphicsView * | view | ) |
Definition at line 6461 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::clearKeyboardGrabber | ( | ) |
void QGraphicsScenePrivate::clearMouseGrabber | ( | ) |
void QGraphicsScenePrivate::cloneDragDropEvent | ( | QGraphicsSceneDragDropEvent * | dest, |
QGraphicsSceneDragDropEvent * | source | ||
) |
bool QGraphicsScenePrivate::dispatchHoverEvent | ( | QGraphicsSceneHoverEvent * | hoverEvent | ) |
This event handler, for event hoverEvent, can be reimplemented in a subclass to receive hover enter events. The default implementation forwards the event to the topmost visible item that accepts hover events at the scene position from the event.
Note: See items() for a definition of which items are considered visible by this function.
Definition at line 3795 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::draw | ( | QGraphicsItem * | item, |
QPainter * | painter, | ||
const QTransform * const | viewTransform, | ||
const QTransform * const | transformPtr, | ||
QRegion * | exposedRegion, | ||
QWidget * | widget, | ||
qreal | opacity, | ||
const QTransform * const | effectTransform, | ||
bool | wasDirtyParentSceneTransform, | ||
bool | drawItem | ||
) |
void QGraphicsScenePrivate::drawItemHelper | ( | QGraphicsItem * | item, |
QPainter * | painter, | ||
const QStyleOptionGraphicsItem * | option, | ||
QWidget * | widget, | ||
bool | painterStateProtection | ||
) |
void QGraphicsScenePrivate::drawSubtreeRecursive | ( | QGraphicsItem * | item, |
QPainter * | painter, | ||
const QTransform * const | viewTransform, | ||
QRegion * | exposedRegion, | ||
QWidget * | widget, | ||
qreal | parentOpacity = qreal(1.0) , |
||
const QTransform *const | effectTransform = nullptr |
||
) |
Definition at line 4661 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::enableMouseTrackingOnViews | ( | ) |
Definition at line 1117 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::enableTouchEventsOnViews | ( | ) |
Definition at line 6062 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::ensureSequentialTopLevelSiblingIndexes | ( | ) |
Definition at line 1514 of file qgraphicsscene.cpp.
|
inline |
Definition at line 289 of file qgraphicsscene_p.h.
void QGraphicsScenePrivate::enterModal | ( | QGraphicsItem * | item, |
QGraphicsItem::PanelModality | panelModality = QGraphicsItem::NonModal |
||
) |
bool QGraphicsScenePrivate::filterDescendantEvent | ( | QGraphicsItem * | item, |
QEvent * | event | ||
) |
Definition at line 1193 of file qgraphicsscene.cpp.
bool QGraphicsScenePrivate::filterEvent | ( | QGraphicsItem * | item, |
QEvent * | event | ||
) |
Definition at line 1211 of file qgraphicsscene.cpp.
Definition at line 5851 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::gestureEventHandler | ( | QGestureEvent * | event | ) |
void QGraphicsScenePrivate::gestureTargetsAtHotSpots | ( | const QSet< QGesture * > & | gestures, |
Qt::GestureFlag | flag, | ||
QHash< QGraphicsObject *, QSet< QGesture * > > * | targets, | ||
QSet< QGraphicsObject * > * | itemsSet = nullptr , |
||
QSet< QGesture * > * | normal = nullptr , |
||
QSet< QGesture * > * | conflicts = nullptr |
||
) |
Definition at line 6167 of file qgraphicsscene.cpp.
|
static |
void QGraphicsScenePrivate::grabGesture | ( | QGraphicsItem * | , |
Qt::GestureType | gesture | ||
) |
void QGraphicsScenePrivate::grabKeyboard | ( | QGraphicsItem * | item | ) |
Definition at line 1050 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::grabMouse | ( | QGraphicsItem * | item, |
bool | implicit = false |
||
) |
Definition at line 950 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::init | ( | ) |
void QGraphicsScenePrivate::installSceneEventFilter | ( | QGraphicsItem * | watched, |
QGraphicsItem * | filter | ||
) |
bool QGraphicsScenePrivate::itemAcceptsHoverEvents_helper | ( | const QGraphicsItem * | item | ) | const |
Definition at line 3777 of file qgraphicsscene.cpp.
QList< QGraphicsItem * > QGraphicsScenePrivate::itemsAtPosition | ( | const QPoint & | screenPos, |
const QPointF & | scenePos, | ||
QWidget * | widget | ||
) | const |
Returns all items for the screen position in event.
Definition at line 1126 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::leaveModal | ( | QGraphicsItem * | item | ) |
Definition at line 6135 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::markDirty | ( | QGraphicsItem * | item, |
const QRectF & | rect = QRectF() , |
||
bool | invalidateChildren = false , |
||
bool | force = false , |
||
bool | ignoreOpacity = false , |
||
bool | removingItemFromScene = false , |
||
bool | updateBoundingRect = false |
||
) |
Definition at line 4947 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::mousePressEventHandler | ( | QGraphicsSceneMouseEvent * | mouseEvent | ) |
Definition at line 1343 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::processDirtyItemsRecursive | ( | QGraphicsItem * | item, |
bool | dirtyAncestorContainsChildren = false , |
||
qreal | parentOpacity = qreal(1.0) |
||
) |
Definition at line 5082 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::registerScenePosItem | ( | QGraphicsItem * | item | ) |
void QGraphicsScenePrivate::registerTopLevelItem | ( | QGraphicsItem * | item | ) |
void QGraphicsScenePrivate::removeItemHelper | ( | QGraphicsItem * | item | ) |
void QGraphicsScenePrivate::removePopup | ( | QGraphicsWidget * | widget, |
bool | itemIsDying = false |
||
) |
Definition at line 926 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::removeSceneEventFilter | ( | QGraphicsItem * | watched, |
QGraphicsItem * | filter | ||
) |
void QGraphicsScenePrivate::removeView | ( | QGraphicsView * | view | ) |
|
inline |
Definition at line 254 of file qgraphicsscene_p.h.
void QGraphicsScenePrivate::resolveFont | ( | ) |
void QGraphicsScenePrivate::resolvePalette | ( | ) |
void QGraphicsScenePrivate::sendDragDropEvent | ( | QGraphicsItem * | item, |
QGraphicsSceneDragDropEvent * | dragDropEvent | ||
) |
bool QGraphicsScenePrivate::sendEvent | ( | QGraphicsItem * | item, |
QEvent * | event | ||
) |
Definition at line 1236 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::sendHoverEvent | ( | QEvent::Type | type, |
QGraphicsItem * | item, | ||
QGraphicsSceneHoverEvent * | hoverEvent | ||
) |
Definition at line 1295 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::sendMouseEvent | ( | QGraphicsSceneMouseEvent * | mouseEvent | ) |
Definition at line 1314 of file qgraphicsscene.cpp.
bool QGraphicsScenePrivate::sendTouchBeginEvent | ( | QGraphicsItem * | item, |
QTouchEvent * | touchEvent | ||
) |
Definition at line 5990 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::setActivePanelHelper | ( | QGraphicsItem * | item, |
bool | duringActivationEvent | ||
) |
void QGraphicsScenePrivate::setFocusItemHelper | ( | QGraphicsItem * | item, |
Qt::FocusReason | focusReason, | ||
bool | emitFocusChanged = true |
||
) |
Definition at line 834 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::setScenePosItemEnabled | ( | QGraphicsItem * | item, |
bool | enabled | ||
) |
Definition at line 524 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::storeMouseButtonsForMouseGrabber | ( | QGraphicsSceneMouseEvent * | event | ) |
void QGraphicsScenePrivate::touchEventHandler | ( | QTouchEvent * | touchEvent | ) |
void QGraphicsScenePrivate::ungrabGesture | ( | QGraphicsItem * | item, |
Qt::GestureType | gesture | ||
) |
Definition at line 6554 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::ungrabKeyboard | ( | QGraphicsItem * | item, |
bool | itemIsDying = false |
||
) |
Definition at line 1078 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::ungrabMouse | ( | QGraphicsItem * | item, |
bool | itemIsDying = false |
||
) |
Definition at line 993 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::unregisterScenePosItem | ( | QGraphicsItem * | item | ) |
Definition at line 549 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::unregisterTopLevelItem | ( | QGraphicsItem * | item | ) |
Definition at line 423 of file qgraphicsscene.cpp.
Definition at line 1561 of file qgraphicsscene.cpp.
void QGraphicsScenePrivate::updateInputMethodSensitivityInViews | ( | ) |
Definition at line 1618 of file qgraphicsscene.cpp.
|
static |
Definition at line 5840 of file qgraphicsscene.cpp.
QGraphicsWidget* QGraphicsScenePrivate::windowForItem | ( | const QGraphicsItem * | item | ) | const |
int QGraphicsScenePrivate::activationRefCount |
Definition at line 174 of file qgraphicsscene_p.h.
QGraphicsItem* QGraphicsScenePrivate::activePanel |
Definition at line 172 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::allItemsIgnoreHoverEvents |
Definition at line 115 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::allItemsIgnoreTouchEvents |
Definition at line 119 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::allItemsUseDefaultCursor |
Definition at line 116 of file qgraphicsscene_p.h.
QBrush QGraphicsScenePrivate::backgroundBrush |
Definition at line 164 of file qgraphicsscene_p.h.
QHash<QGraphicsObject *, QSet<QGesture *> > QGraphicsScenePrivate::cachedAlreadyDeliveredGestures |
Definition at line 323 of file qgraphicsscene_p.h.
QHash<QGraphicsObject *, QSet<QGesture *> > QGraphicsScenePrivate::cachedItemGestures |
Definition at line 322 of file qgraphicsscene_p.h.
QList<QGraphicsItem *> QGraphicsScenePrivate::cachedItemsUnderMouse |
Definition at line 198 of file qgraphicsscene_p.h.
QList<QGraphicsObject *> QGraphicsScenePrivate::cachedTargetItems |
Definition at line 320 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::calledEmitUpdated |
Definition at line 106 of file qgraphicsscene_p.h.
int QGraphicsScenePrivate::changedSignalIndex |
Definition at line 92 of file qgraphicsscene_p.h.
int QGraphicsScenePrivate::childExplicitActivation |
Definition at line 175 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::dirtyGrowingItemsBoundingRect |
Definition at line 104 of file qgraphicsscene_p.h.
QGraphicsItem* QGraphicsScenePrivate::dragDropItem |
Definition at line 195 of file qgraphicsscene_p.h.
QGraphicsWidget* QGraphicsScenePrivate::enterWidget |
Definition at line 196 of file qgraphicsscene_p.h.
QGraphicsItem* QGraphicsScenePrivate::focusItem |
Definition at line 168 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::focusOnTouch |
Definition at line 120 of file qgraphicsscene_p.h.
QFont QGraphicsScenePrivate::font |
Definition at line 301 of file qgraphicsscene_p.h.
QBrush QGraphicsScenePrivate::foregroundBrush |
Definition at line 165 of file qgraphicsscene_p.h.
QHash<QGesture *, QGraphicsObject *> QGraphicsScenePrivate::gestureTargets |
Definition at line 324 of file qgraphicsscene_p.h.
QHash<Qt::GestureType, int> QGraphicsScenePrivate::grabbedGestures |
Definition at line 325 of file qgraphicsscene_p.h.
QRectF QGraphicsScenePrivate::growingItemsBoundingRect |
Definition at line 125 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::hasFocus |
Definition at line 113 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::hasSceneRect |
Definition at line 103 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::holesInTopLevelSiblingIndex |
Definition at line 109 of file qgraphicsscene_p.h.
QList<QGraphicsItem *> QGraphicsScenePrivate::hoverItems |
Definition at line 199 of file qgraphicsscene_p.h.
QGraphicsSceneIndex* QGraphicsScenePrivate::index |
Definition at line 97 of file qgraphicsscene_p.h.
QGraphicsScene::ItemIndexMethod QGraphicsScenePrivate::indexMethod |
Definition at line 96 of file qgraphicsscene_p.h.
QMap<int, QGraphicsItem *> QGraphicsScenePrivate::itemForTouchPointId |
Definition at line 313 of file qgraphicsscene_p.h.
QList<QGraphicsItem *> QGraphicsScenePrivate::keyboardGrabberItems |
Definition at line 190 of file qgraphicsscene_p.h.
QGraphicsItem* QGraphicsScenePrivate::lastActivePanel |
Definition at line 173 of file qgraphicsscene_p.h.
Qt::DropAction QGraphicsScenePrivate::lastDropAction |
Definition at line 197 of file qgraphicsscene_p.h.
QGraphicsItem* QGraphicsScenePrivate::lastFocusItem |
Definition at line 169 of file qgraphicsscene_p.h.
int QGraphicsScenePrivate::lastItemCount |
Definition at line 99 of file qgraphicsscene_p.h.
QGraphicsItem* QGraphicsScenePrivate::lastMouseGrabberItem |
Definition at line 184 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::lastMouseGrabberItemHasImplicitMouseGrab |
Definition at line 114 of file qgraphicsscene_p.h.
QPointF QGraphicsScenePrivate::lastSceneMousePos |
Definition at line 200 of file qgraphicsscene_p.h.
qreal QGraphicsScenePrivate::minimumRenderSize |
Definition at line 123 of file qgraphicsscene_p.h.
QList<QGraphicsItem *> QGraphicsScenePrivate::modalPanels |
Definition at line 340 of file qgraphicsscene_p.h.
QMap<Qt::MouseButton, QPointF> QGraphicsScenePrivate::mouseGrabberButtonDownPos |
Definition at line 202 of file qgraphicsscene_p.h.
QMap<Qt::MouseButton, QPointF> QGraphicsScenePrivate::mouseGrabberButtonDownScenePos |
Definition at line 203 of file qgraphicsscene_p.h.
QMap<Qt::MouseButton, QPoint> QGraphicsScenePrivate::mouseGrabberButtonDownScreenPos |
Definition at line 204 of file qgraphicsscene_p.h.
QList<QGraphicsItem *> QGraphicsScenePrivate::mouseGrabberItems |
Definition at line 185 of file qgraphicsscene_p.h.
QHash<QGraphicsItem *, QPointF> QGraphicsScenePrivate::movingItemsInitialPositions |
Definition at line 148 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::needSortTopLevelItems |
Definition at line 108 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::padding |
Definition at line 121 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::painterStateProtection |
Definition at line 117 of file qgraphicsscene_p.h.
QPalette QGraphicsScenePrivate::palette |
Definition at line 305 of file qgraphicsscene_p.h.
QGraphicsItem* QGraphicsScenePrivate::passiveFocusItem |
Definition at line 170 of file qgraphicsscene_p.h.
int QGraphicsScenePrivate::polishItemsIndex |
Definition at line 94 of file qgraphicsscene_p.h.
QList<QGraphicsWidget *> QGraphicsScenePrivate::popupWidgets |
Definition at line 180 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::processDirtyItemsEmitted |
Definition at line 107 of file qgraphicsscene_p.h.
int QGraphicsScenePrivate::processDirtyItemsIndex |
Definition at line 93 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::rectAdjust |
Definition at line 167 of file qgraphicsscene_p.h.
QMap<int, QEventPoint> QGraphicsScenePrivate::sceneCurrentTouchPoints |
Definition at line 312 of file qgraphicsscene_p.h.
QMultiMap<QGraphicsItem *, QGraphicsItem *> QGraphicsScenePrivate::sceneEventFilters |
Definition at line 214 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::scenePosDescendantsUpdatePending |
Definition at line 111 of file qgraphicsscene_p.h.
QSet<QGraphicsItem *> QGraphicsScenePrivate::scenePosItems |
Definition at line 156 of file qgraphicsscene_p.h.
QRectF QGraphicsScenePrivate::sceneRect |
Definition at line 101 of file qgraphicsscene_p.h.
QSet<QGraphicsItem *> QGraphicsScenePrivate::selectedItems |
Definition at line 144 of file qgraphicsscene_p.h.
QPainterPath QGraphicsScenePrivate::selectionArea |
Definition at line 142 of file qgraphicsscene_p.h.
int QGraphicsScenePrivate::selectionChanging |
Definition at line 143 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::sortCacheEnabled |
Definition at line 118 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::stickyFocus |
Definition at line 112 of file qgraphicsscene_p.h.
QStyle* QGraphicsScenePrivate::style |
Definition at line 300 of file qgraphicsscene_p.h.
QStyleOptionGraphicsItem QGraphicsScenePrivate::styleOptionTmp |
Definition at line 310 of file qgraphicsscene_p.h.
QGraphicsWidget* QGraphicsScenePrivate::tabFocusFirst |
Definition at line 171 of file qgraphicsscene_p.h.
QList<QGraphicsItem *> QGraphicsScenePrivate::topLevelItems |
Definition at line 146 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::topLevelSequentialOrdering |
Definition at line 110 of file qgraphicsscene_p.h.
QList<QGraphicsItem *> QGraphicsScenePrivate::unpolishedItems |
Definition at line 145 of file qgraphicsscene_p.h.
quint32 QGraphicsScenePrivate::updateAll |
Definition at line 105 of file qgraphicsscene_p.h.
std::set<QRectF, UpdatedRectsCmp> QGraphicsScenePrivate::updatedRects |
Definition at line 140 of file qgraphicsscene_p.h.
QList<QGraphicsView *> QGraphicsScenePrivate::views |
Definition at line 210 of file qgraphicsscene_p.h.