Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgraphicsview.cpp File Reference

(d99b0cfed21e05f6e84b97fe8edb68271a34deb2)

#include "qgraphicsview.h"
#include "qgraphicsview_p.h"
#include "qgraphicsitem.h"
#include "qgraphicsitem_p.h"
#include "qgraphicsscene.h"
#include "qgraphicsscene_p.h"
#include "qgraphicssceneevent.h"
#include "qgraphicswidget.h"
#include <QtCore/qdatetime.h>
#include <QtCore/qdebug.h>
#include <QtCore/qmath.h>
#include <QtCore/qscopedvaluerollback.h>
#include <QtWidgets/qapplication.h>
#include <QtGui/qevent.h>
#include <QtWidgets/qlayout.h>
#include <QtGui/qtransform.h>
#include <QtGui/qpainter.h>
#include <QtGui/qpainterpath.h>
#include <QtWidgets/qscrollbar.h>
#include <QtWidgets/qstyleoption.h>
#include <private/qevent_p.h>
#include <QtGui/private/qeventpoint_p.h>
#include "moc_qgraphicsview.cpp"
+ Include dependency graph for qgraphicsview.cpp:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE bool qt_sendSpontaneousEvent (QObject *receiver, QEvent *event)
 
int q_round_bound (qreal d)
 
static bool intersectsViewport (const QRect &r, int width, int height)
 
static bool containsViewport (const QRect &r, int width, int height)
 
static void QRect_unite (QRect *rect, const QRect &other)
 
QPainterPath qt_regionToPath (const QRegion &region)
 

Variables

static const int QGRAPHICSVIEW_REGION_RECT_THRESHOLD = 50
 
static const int QGRAPHICSVIEW_PREALLOC_STYLE_OPTIONS = 503
 

Function Documentation

◆ containsViewport()

static bool containsViewport ( const QRect & r,
int width,
int height )
inlinestatic

Definition at line 965 of file qgraphicsview.cpp.

Referenced by QGraphicsViewPrivate::updateRect().

+ Here is the caller graph for this function:

◆ intersectsViewport()

static bool intersectsViewport ( const QRect & r,
int width,
int height )
inlinestatic

Definition at line 962 of file qgraphicsview.cpp.

Referenced by QGraphicsViewPrivate::updateRect(), and QGraphicsViewPrivate::updateRegion().

+ Here is the caller graph for this function:

◆ q_round_bound()

int q_round_bound ( qreal d)
inline

Definition at line 277 of file qgraphicsview.cpp.

References d.

Referenced by QGraphicsViewPrivate::recalculateContentSize().

+ Here is the caller graph for this function:

◆ QRect_unite()

static void QRect_unite ( QRect * rect,
const QRect & other )
inlinestatic

Definition at line 968 of file qgraphicsview.cpp.

References other(), qMax(), qMin(), and rect.

Referenced by QGraphicsViewPrivate::updateRect().

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

◆ qt_regionToPath()

QPainterPath qt_regionToPath ( const QRegion & region)
extern

Definition at line 1007 of file qregion.cpp.

◆ qt_sendSpontaneousEvent()

QT_BEGIN_NAMESPACE bool qt_sendSpontaneousEvent ( QObject * receiver,
QEvent * event )
related

Variable Documentation

◆ QGRAPHICSVIEW_PREALLOC_STYLE_OPTIONS

const int QGRAPHICSVIEW_PREALLOC_STYLE_OPTIONS = 503
static

Definition at line 6 of file qgraphicsview.cpp.

Referenced by QGraphicsViewPrivate::QGraphicsViewPrivate().

◆ QGRAPHICSVIEW_REGION_RECT_THRESHOLD

const int QGRAPHICSVIEW_REGION_RECT_THRESHOLD = 50
static

Definition at line 4 of file qgraphicsview.cpp.

Referenced by QGraphicsView::updateScene().