(c0e526f70f58c9b70fea1b9426d14b18f1f0066c)
#include "qgraphicsanchorlayout_p.h"
#include <QtWidgets/qwidget.h>
#include <QtWidgets/qapplication.h>
#include <QtCore/qstack.h>
#include <numeric>
Go to the source code of this file.
|
static void | applySizePolicy (QSizePolicy::Policy policy, qreal minSizeHint, qreal prefSizeHint, qreal maxSizeHint, qreal *minSize, qreal *prefSize, qreal *maxSize) |
static std::pair< QGraphicsAnchorLayoutPrivate::Interval, qreal > | getFactor (qreal value, qreal min, qreal minPref, qreal pref, qreal maxPref, qreal max) |
static qreal | interpolate (const std::pair< QGraphicsAnchorLayoutPrivate::Interval, qreal > &factor, qreal min, qreal minPref, qreal pref, qreal maxPref, qreal max) |
static AnchorData * | createSequence (Graph< AnchorVertex, AnchorData > *graph, AnchorVertex *before, const QList< AnchorVertex * > &vertices, AnchorVertex *after) |
static AnchorVertex * | replaceVertex_helper (AnchorData *data, AnchorVertex *oldV, AnchorVertex *newV) |
QList< AnchorData * > | getVariables (const QList< QSimplexConstraint * > &constraints) |
static void | shiftConstraints (const QList< QSimplexConstraint * > &constraints, qreal amount) |
static auto | createSlack (QSimplexConstraint *sizeConstraint, qreal interval, slackType type) |
◆ slackType [1/2]
◆ slackType [2/2]
◆ applySizePolicy()
◆ createSequence()
◆ createSlack()
◆ getFactor()
returns the factor in the interval [-1, 1]. -1 is at Minimum 0 is at Preferred 1 is at Maximum
Definition at line 382 of file qgraphicsanchorlayout_p.cpp.
◆ getVariables()
◆ interpolate()
◆ replaceVertex_helper()
◆ shiftConstraints()
Shift all the constraints by a certain amount. This allows us to deal with negative values in the linear program if they are bounded by a certain limit. Functions should be careful to call it again with a negative amount, to shift the constraints back.
Definition at line 2125 of file qgraphicsanchorlayout_p.cpp.
◆ g_offset