QtBase  v6.3.1
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
QGraphicsViewPrivate Class Reference

#include <qgraphicsview_p.h>

Inheritance diagram for QGraphicsViewPrivate:
Inheritance graph
[legend]
Collaboration diagram for QGraphicsViewPrivate:
Collaboration graph
[legend]

Public Member Functions

 QGraphicsViewPrivate ()
 
 ~QGraphicsViewPrivate ()
 
void recalculateContentSize ()
 
void centerView (QGraphicsView::ViewportAnchor anchor)
 
void updateLastCenterPoint ()
 
qint64 horizontalScroll () const
 
qint64 verticalScroll () const
 
QRectF mapRectToScene (const QRect &rect) const
 
QRectF mapRectFromScene (const QRectF &rect) const
 
void updateScroll ()
 
bool canStartScrollingAt (const QPoint &startPos) const override
 
void replayLastMouseEvent ()
 
void storeMouseEvent (QMouseEvent *event)
 
void mouseMoveEventHandler (QMouseEvent *event)
 
QStyleOptionGraphicsItemallocStyleOptionsArray (int numItems)
 
void freeStyleOptionsArray (QStyleOptionGraphicsItem *array)
 
void _q_setViewportCursor (const QCursor &cursor)
 
void _q_unsetViewportCursor ()
 
void storeDragDropEvent (const QGraphicsSceneDragDropEvent *event)
 
void populateSceneDragDropEvent (QGraphicsSceneDragDropEvent *dest, QDropEvent *source)
 
QRect mapToViewRect (const QGraphicsItem *item, const QRectF &rect) const
 
QRegion mapToViewRegion (const QGraphicsItem *item, const QRectF &rect) const
 
void processPendingUpdates ()
 
void updateAll ()
 
void dispatchPendingUpdateRequests ()
 
void setUpdateClip (QGraphicsItem *)
 
bool updateRectF (const QRectF &rect)
 
bool updateRect (const QRect &rect)
 
bool updateRegion (const QRectF &rect, const QTransform &xform)
 
QList< QGraphicsItem * > findItems (const QRegion &exposedRegion, bool *allItems, const QTransform &viewTransform) const
 
QPointF mapToScene (const QPointF &point) const
 
QRectF mapToScene (const QRectF &rect) const
 
void updateInputMethodSensitivity ()
 

Static Public Member Functions

static void translateTouchEvent (QGraphicsViewPrivate *d, QTouchEvent *touchEvent)
 

Public Attributes

QPainter::RenderHints renderHints
 
QGraphicsView::DragMode dragMode
 
quint32 sceneInteractionAllowed: 1
 
quint32 hasSceneRect: 1
 
quint32 connectedToScene: 1
 
quint32 useLastMouseEvent: 1
 
quint32 identityMatrix: 1
 
quint32 dirtyScroll: 1
 
quint32 accelerateScrolling: 1
 
quint32 keepLastCenterPoint: 1
 
quint32 transforming: 1
 
quint32 handScrolling: 1
 
quint32 mustAllocateStyleOptions: 1
 
quint32 mustResizeBackgroundPixmap: 1
 
quint32 fullUpdatePending: 1
 
quint32 hasUpdateClip: 1
 
quint32 padding: 18
 
QRectF sceneRect
 
QRect updateClip
 
QPointF mousePressItemPoint
 
QPointF mousePressScenePoint
 
QPoint mousePressViewPoint
 
QPoint mousePressScreenPoint
 
QPointF lastMouseMoveScenePoint
 
QPointF lastRubberbandScenePoint
 
QPoint lastMouseMoveScreenPoint
 
QPoint dirtyScrollOffset
 
Qt::MouseButton mousePressButton
 
QTransform matrix
 
qint64 scrollX
 
qint64 scrollY
 
qreal leftIndent
 
qreal topIndent
 
QMutableSinglePointEvent lastMouseEvent
 
QPointF lastCenterPoint
 
Qt::Alignment alignment
 
QGraphicsView::ViewportAnchor transformationAnchor
 
QGraphicsView::ViewportAnchor resizeAnchor
 
QGraphicsView::ViewportUpdateMode viewportUpdateMode
 
QGraphicsView::OptimizationFlags optimizationFlags
 
QPointer< QGraphicsScenescene
 
int handScrollMotions
 
QGraphicsView::CacheMode cacheMode
 
QList< QStyleOptionGraphicsItemstyleOptions
 
QBrush backgroundBrush
 
QBrush foregroundBrush
 
QPixmap backgroundPixmap
 
QRegion backgroundPixmapExposed
 
QCursor originalCursor
 
bool hasStoredOriginalCursor
 
QGraphicsSceneDragDropEventlastDragDropEvent
 
QRegion dirtyRegion
 
QRect dirtyBoundingRect
 
bool updateSceneSlotReimplementedChecked
 
QRegion exposedRegion
 

Detailed Description

Definition at line 68 of file qgraphicsview_p.h.

Constructor & Destructor Documentation

◆ QGraphicsViewPrivate()

QGraphicsViewPrivate::QGraphicsViewPrivate ( )

Definition at line 326 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ ~QGraphicsViewPrivate()

QGraphicsViewPrivate::~QGraphicsViewPrivate ( )

Definition at line 363 of file qgraphicsview.cpp.

Member Function Documentation

◆ _q_setViewportCursor()

void QGraphicsViewPrivate::_q_setViewportCursor ( const QCursor cursor)

Definition at line 825 of file qgraphicsview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _q_unsetViewportCursor()

void QGraphicsViewPrivate::_q_unsetViewportCursor ( )

Definition at line 839 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ allocStyleOptionsArray()

QStyleOptionGraphicsItem * QGraphicsViewPrivate::allocStyleOptionsArray ( int  numItems)

Definition at line 1118 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ canStartScrollingAt()

bool QGraphicsViewPrivate::canStartScrollingAt ( const QPoint startPos) const
override

Definition at line 610 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ centerView()

void QGraphicsViewPrivate::centerView ( QGraphicsView::ViewportAnchor  anchor)

Definition at line 497 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ dispatchPendingUpdateRequests()

void QGraphicsViewPrivate::dispatchPendingUpdateRequests ( )
inline

Definition at line 187 of file qgraphicsview_p.h.

Here is the call graph for this function:

◆ findItems()

QList< QGraphicsItem * > QGraphicsViewPrivate::findItems ( const QRegion exposedRegion,
bool *  allItems,
const QTransform viewTransform 
) const

Adjustments in findItems: mapToScene(QRect) forces us to adjust the

input rectangle by (0, 0, 1, 1), because it uses QRect::bottomRight() (etc) when mapping the rectangle to a polygon (which is wrong). In addition, as QGraphicsItem::boundingRect() is defined in logical space, but the default pen for QPainter is cosmetic with a width of 0, QPainter is at risk of painting 1 pixel outside the bounding rect. Therefore we must search for items with an adjustment of (-1, -1, 1, 1).

Definition at line 1150 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ freeStyleOptionsArray()

void QGraphicsViewPrivate::freeStyleOptionsArray ( QStyleOptionGraphicsItem array)

Definition at line 1132 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ horizontalScroll()

qint64 QGraphicsViewPrivate::horizontalScroll ( ) const

Definition at line 536 of file qgraphicsview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mapRectFromScene()

QRectF QGraphicsViewPrivate::mapRectFromScene ( const QRectF rect) const

Definition at line 575 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ mapRectToScene()

QRectF QGraphicsViewPrivate::mapRectToScene ( const QRect rect) const

Definition at line 561 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ mapToScene() [1/2]

QPointF QGraphicsViewPrivate::mapToScene ( const QPointF point) const

Definition at line 3889 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ mapToScene() [2/2]

QRectF QGraphicsViewPrivate::mapToScene ( const QRectF rect) const

Definition at line 3897 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ mapToViewRect()

QRect QGraphicsViewPrivate::mapToViewRect ( const QGraphicsItem item,
const QRectF rect 
) const

Definition at line 908 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ mapToViewRegion()

QRegion QGraphicsViewPrivate::mapToViewRegion ( const QGraphicsItem item,
const QRectF rect 
) const

Definition at line 951 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ mouseMoveEventHandler()

void QGraphicsViewPrivate::mouseMoveEventHandler ( QMouseEvent event)

Definition at line 644 of file qgraphicsview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ populateSceneDragDropEvent()

void QGraphicsViewPrivate::populateSceneDragDropEvent ( QGraphicsSceneDragDropEvent dest,
QDropEvent *  source 
)

Definition at line 884 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ processPendingUpdates()

void QGraphicsViewPrivate::processPendingUpdates ( )

Definition at line 965 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ recalculateContentSize()

void QGraphicsViewPrivate::recalculateContentSize ( )

Definition at line 370 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ replayLastMouseEvent()

void QGraphicsViewPrivate::replayLastMouseEvent ( )

Definition at line 627 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ setUpdateClip()

void QGraphicsViewPrivate::setUpdateClip ( QGraphicsItem item)

Definition at line 1003 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ storeDragDropEvent()

void QGraphicsViewPrivate::storeDragDropEvent ( const QGraphicsSceneDragDropEvent event)

Definition at line 864 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ storeMouseEvent()

void QGraphicsViewPrivate::storeMouseEvent ( QMouseEvent event)

Definition at line 638 of file qgraphicsview.cpp.

Here is the caller graph for this function:

◆ translateTouchEvent()

void QGraphicsViewPrivate::translateTouchEvent ( QGraphicsViewPrivate d,
QTouchEvent touchEvent 
)
static

Definition at line 312 of file qgraphicsview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateAll()

void QGraphicsViewPrivate::updateAll ( )
inline

Definition at line 179 of file qgraphicsview_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateInputMethodSensitivity()

void QGraphicsViewPrivate::updateInputMethodSensitivity ( )

Definition at line 1197 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ updateLastCenterPoint()

void QGraphicsViewPrivate::updateLastCenterPoint ( )

Definition at line 524 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ updateRect()

bool QGraphicsViewPrivate::updateRect ( const QRect rect)

Definition at line 1082 of file qgraphicsview.cpp.

Here is the caller graph for this function:

◆ updateRectF()

bool QGraphicsViewPrivate::updateRectF ( const QRectF rect)
inline

Definition at line 197 of file qgraphicsview_p.h.

Here is the caller graph for this function:

◆ updateRegion()

bool QGraphicsViewPrivate::updateRegion ( const QRectF rect,
const QTransform xform 
)

Definition at line 1044 of file qgraphicsview.cpp.

Here is the call graph for this function:

◆ updateScroll()

void QGraphicsViewPrivate::updateScroll ( )

Definition at line 585 of file qgraphicsview.cpp.

Here is the caller graph for this function:

◆ verticalScroll()

qint64 QGraphicsViewPrivate::verticalScroll ( ) const

Definition at line 549 of file qgraphicsview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ accelerateScrolling

quint32 QGraphicsViewPrivate::accelerateScrolling

Definition at line 88 of file qgraphicsview_p.h.

◆ alignment

Qt::Alignment QGraphicsViewPrivate::alignment

Definition at line 132 of file qgraphicsview_p.h.

◆ backgroundBrush

QBrush QGraphicsViewPrivate::backgroundBrush

Definition at line 157 of file qgraphicsview_p.h.

◆ backgroundPixmap

QPixmap QGraphicsViewPrivate::backgroundPixmap

Definition at line 159 of file qgraphicsview_p.h.

◆ backgroundPixmapExposed

QRegion QGraphicsViewPrivate::backgroundPixmapExposed

Definition at line 160 of file qgraphicsview_p.h.

◆ cacheMode

QGraphicsView::CacheMode QGraphicsViewPrivate::cacheMode

Definition at line 151 of file qgraphicsview_p.h.

◆ connectedToScene

quint32 QGraphicsViewPrivate::connectedToScene

Definition at line 84 of file qgraphicsview_p.h.

◆ dirtyBoundingRect

QRect QGraphicsViewPrivate::dirtyBoundingRect

Definition at line 177 of file qgraphicsview_p.h.

◆ dirtyRegion

QRegion QGraphicsViewPrivate::dirtyRegion

Definition at line 176 of file qgraphicsview_p.h.

◆ dirtyScroll

quint32 QGraphicsViewPrivate::dirtyScroll

Definition at line 87 of file qgraphicsview_p.h.

◆ dirtyScrollOffset

QPoint QGraphicsViewPrivate::dirtyScrollOffset

Definition at line 115 of file qgraphicsview_p.h.

◆ dragMode

QGraphicsView::DragMode QGraphicsViewPrivate::dragMode

Definition at line 80 of file qgraphicsview_p.h.

◆ exposedRegion

QRegion QGraphicsViewPrivate::exposedRegion

Definition at line 209 of file qgraphicsview_p.h.

◆ foregroundBrush

QBrush QGraphicsViewPrivate::foregroundBrush

Definition at line 158 of file qgraphicsview_p.h.

◆ fullUpdatePending

quint32 QGraphicsViewPrivate::fullUpdatePending

Definition at line 94 of file qgraphicsview_p.h.

◆ handScrolling

quint32 QGraphicsViewPrivate::handScrolling

Definition at line 91 of file qgraphicsview_p.h.

◆ handScrollMotions

int QGraphicsViewPrivate::handScrollMotions

Definition at line 149 of file qgraphicsview_p.h.

◆ hasSceneRect

quint32 QGraphicsViewPrivate::hasSceneRect

Definition at line 83 of file qgraphicsview_p.h.

◆ hasStoredOriginalCursor

bool QGraphicsViewPrivate::hasStoredOriginalCursor

Definition at line 164 of file qgraphicsview_p.h.

◆ hasUpdateClip

quint32 QGraphicsViewPrivate::hasUpdateClip

Definition at line 95 of file qgraphicsview_p.h.

◆ identityMatrix

quint32 QGraphicsViewPrivate::identityMatrix

Definition at line 86 of file qgraphicsview_p.h.

◆ keepLastCenterPoint

quint32 QGraphicsViewPrivate::keepLastCenterPoint

Definition at line 89 of file qgraphicsview_p.h.

◆ lastCenterPoint

QPointF QGraphicsViewPrivate::lastCenterPoint

Definition at line 131 of file qgraphicsview_p.h.

◆ lastDragDropEvent

QGraphicsSceneDragDropEvent* QGraphicsViewPrivate::lastDragDropEvent

Definition at line 169 of file qgraphicsview_p.h.

◆ lastMouseEvent

QMutableSinglePointEvent QGraphicsViewPrivate::lastMouseEvent

Definition at line 126 of file qgraphicsview_p.h.

◆ lastMouseMoveScenePoint

QPointF QGraphicsViewPrivate::lastMouseMoveScenePoint

Definition at line 112 of file qgraphicsview_p.h.

◆ lastMouseMoveScreenPoint

QPoint QGraphicsViewPrivate::lastMouseMoveScreenPoint

Definition at line 114 of file qgraphicsview_p.h.

◆ lastRubberbandScenePoint

QPointF QGraphicsViewPrivate::lastRubberbandScenePoint

Definition at line 113 of file qgraphicsview_p.h.

◆ leftIndent

qreal QGraphicsViewPrivate::leftIndent

Definition at line 122 of file qgraphicsview_p.h.

◆ matrix

QTransform QGraphicsViewPrivate::matrix

Definition at line 117 of file qgraphicsview_p.h.

◆ mousePressButton

Qt::MouseButton QGraphicsViewPrivate::mousePressButton

Definition at line 116 of file qgraphicsview_p.h.

◆ mousePressItemPoint

QPointF QGraphicsViewPrivate::mousePressItemPoint

Definition at line 108 of file qgraphicsview_p.h.

◆ mousePressScenePoint

QPointF QGraphicsViewPrivate::mousePressScenePoint

Definition at line 109 of file qgraphicsview_p.h.

◆ mousePressScreenPoint

QPoint QGraphicsViewPrivate::mousePressScreenPoint

Definition at line 111 of file qgraphicsview_p.h.

◆ mousePressViewPoint

QPoint QGraphicsViewPrivate::mousePressViewPoint

Definition at line 110 of file qgraphicsview_p.h.

◆ mustAllocateStyleOptions

quint32 QGraphicsViewPrivate::mustAllocateStyleOptions

Definition at line 92 of file qgraphicsview_p.h.

◆ mustResizeBackgroundPixmap

quint32 QGraphicsViewPrivate::mustResizeBackgroundPixmap

Definition at line 93 of file qgraphicsview_p.h.

◆ optimizationFlags

QGraphicsView::OptimizationFlags QGraphicsViewPrivate::optimizationFlags

Definition at line 137 of file qgraphicsview_p.h.

◆ originalCursor

QCursor QGraphicsViewPrivate::originalCursor

Definition at line 163 of file qgraphicsview_p.h.

◆ padding

quint32 QGraphicsViewPrivate::padding

Definition at line 96 of file qgraphicsview_p.h.

◆ renderHints

QPainter::RenderHints QGraphicsViewPrivate::renderHints

Definition at line 78 of file qgraphicsview_p.h.

◆ resizeAnchor

QGraphicsView::ViewportAnchor QGraphicsViewPrivate::resizeAnchor

Definition at line 135 of file qgraphicsview_p.h.

◆ scene

QPointer<QGraphicsScene> QGraphicsViewPrivate::scene

Definition at line 139 of file qgraphicsview_p.h.

◆ sceneInteractionAllowed

quint32 QGraphicsViewPrivate::sceneInteractionAllowed

Definition at line 82 of file qgraphicsview_p.h.

◆ sceneRect

QRectF QGraphicsViewPrivate::sceneRect

Definition at line 98 of file qgraphicsview_p.h.

◆ scrollX

qint64 QGraphicsViewPrivate::scrollX

Definition at line 118 of file qgraphicsview_p.h.

◆ scrollY

qint64 QGraphicsViewPrivate::scrollY

Definition at line 118 of file qgraphicsview_p.h.

◆ styleOptions

QList<QStyleOptionGraphicsItem> QGraphicsViewPrivate::styleOptions

Definition at line 153 of file qgraphicsview_p.h.

◆ topIndent

qreal QGraphicsViewPrivate::topIndent

Definition at line 123 of file qgraphicsview_p.h.

◆ transformationAnchor

QGraphicsView::ViewportAnchor QGraphicsViewPrivate::transformationAnchor

Definition at line 134 of file qgraphicsview_p.h.

◆ transforming

quint32 QGraphicsViewPrivate::transforming

Definition at line 90 of file qgraphicsview_p.h.

◆ updateClip

QRect QGraphicsViewPrivate::updateClip

Definition at line 107 of file qgraphicsview_p.h.

◆ updateSceneSlotReimplementedChecked

bool QGraphicsViewPrivate::updateSceneSlotReimplementedChecked

Definition at line 208 of file qgraphicsview_p.h.

◆ useLastMouseEvent

quint32 QGraphicsViewPrivate::useLastMouseEvent

Definition at line 85 of file qgraphicsview_p.h.

◆ viewportUpdateMode

QGraphicsView::ViewportUpdateMode QGraphicsViewPrivate::viewportUpdateMode

Definition at line 136 of file qgraphicsview_p.h.


The documentation for this class was generated from the following files: