Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qgraphicsview.cpp File Reference

(84a5f50c7766c99f62b22bb4388137e0aa8dd13d)

#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 962 of file qgraphicsview.cpp.

◆ intersectsViewport()

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

Definition at line 959 of file qgraphicsview.cpp.

◆ q_round_bound()

int q_round_bound ( qreal d)
inline

Definition at line 277 of file qgraphicsview.cpp.

◆ QRect_unite()

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

Definition at line 965 of file qgraphicsview.cpp.

◆ qt_regionToPath()

QPainterPath qt_regionToPath ( const QRegion & region)
extern

Definition at line 1016 of file qregion.cpp.

◆ qt_sendSpontaneousEvent()

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

Variable Documentation

◆ QGRAPHICSVIEW_PREALLOC_STYLE_OPTIONS

static const int QGRAPHICSVIEW_PREALLOC_STYLE_OPTIONS = 503
static

Definition at line 6 of file qgraphicsview.cpp.

◆ QGRAPHICSVIEW_REGION_RECT_THRESHOLD

static const int QGRAPHICSVIEW_REGION_RECT_THRESHOLD = 50
static

Definition at line 4 of file qgraphicsview.cpp.