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
qgraphicswidget_p.cpp File Reference

(c0e526f70f58c9b70fea1b9426d14b18f1f0066c)

#include "qglobal.h"
#include <QtCore/qdebug.h>
#include <QtCore/qnumeric.h>
#include "qgraphicswidget_p.h"
#include "qgraphicslayoutitem_p.h"
#include "qgraphicslayout.h"
#include "qgraphicsscene_p.h"
#include <QtWidgets/qapplication.h>
#include <QtWidgets/qgraphicsscene.h>
#include <QtWidgets/qstyleoption.h>
#include <QtWidgets/QStyleOptionTitleBar>
#include <QtWidgets/QGraphicsSceneMouseEvent>
Include dependency graph for qgraphicswidget_p.cpp:

Go to the source code of this file.

Functions

static qreal minimumHeightForWidth (qreal width, qreal minh, qreal maxh, const QGraphicsWidget *widget, bool heightForWidth=true)
static qreal minimumWidthForHeight (qreal height, qreal minw, qreal maxw, const QGraphicsWidget *widget)
static QSizeF closestAcceptableSize (const QSizeF &proposed, const QGraphicsWidget *widget)
static void _q_boundGeometryToSizeConstraints (const QRectF &startGeometry, QRectF *rect, Qt::WindowFrameSection section, const QSizeF &min, const QSizeF &max, const QGraphicsWidget *widget)

Function Documentation

◆ _q_boundGeometryToSizeConstraints()

void _q_boundGeometryToSizeConstraints ( const QRectF & startGeometry,
QRectF * rect,
Qt::WindowFrameSection section,
const QSizeF & min,
const QSizeF & max,
const QGraphicsWidget * widget )
static

Definition at line 458 of file qgraphicswidget_p.cpp.

◆ closestAcceptableSize()

QSizeF closestAcceptableSize ( const QSizeF & proposed,
const QGraphicsWidget * widget )
static

Definition at line 411 of file qgraphicswidget_p.cpp.

◆ minimumHeightForWidth()

qreal minimumHeightForWidth ( qreal width,
qreal minh,
qreal maxh,
const QGraphicsWidget * widget,
bool heightForWidth = true )
static

Definition at line 373 of file qgraphicswidget_p.cpp.

◆ minimumWidthForHeight()

qreal minimumWidthForHeight ( qreal height,
qreal minw,
qreal maxw,
const QGraphicsWidget * widget )
static

Definition at line 405 of file qgraphicswidget_p.cpp.