mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 10:22:55 +00:00
remove unused QGraphicsItemPrivate methods arguments
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
dc84af4866
commit
9e9832d1df
2 changed files with 14 additions and 19 deletions
|
@ -944,42 +944,37 @@ QPointF QGraphicsItemPrivate::genericMapFromScene(const QPointF &pos,
|
|||
/*!
|
||||
\internal
|
||||
|
||||
Combines this item's position and transform onto \a transform.
|
||||
Combines this item's position and transform onto \a x.
|
||||
|
||||
If you need to change this function (e.g., adding more transformation
|
||||
modes / options), make sure to change all places marked with COMBINE.
|
||||
*/
|
||||
void QGraphicsItemPrivate::combineTransformToParent(QTransform *x, const QTransform *viewTransform) const
|
||||
void QGraphicsItemPrivate::combineTransformToParent(QTransform *x) const
|
||||
{
|
||||
// COMBINE
|
||||
if (viewTransform && itemIsUntransformable()) {
|
||||
*x = q_ptr->deviceTransform(*viewTransform);
|
||||
} else {
|
||||
if (transformData)
|
||||
*x *= transformData->computedFullTransform();
|
||||
if (!pos.isNull())
|
||||
*x *= QTransform::fromTranslate(pos.x(), pos.y());
|
||||
if (transformData) {
|
||||
*x *= transformData->computedFullTransform();
|
||||
}
|
||||
if (!pos.isNull()) {
|
||||
*x *= QTransform::fromTranslate(pos.x(), pos.y());
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
\internal
|
||||
|
||||
Combines this item's position and transform onto \a transform.
|
||||
Combines this item's position and transform onto \a x.
|
||||
|
||||
If you need to change this function (e.g., adding more transformation
|
||||
modes / options), make sure to change QGraphicsItem::deviceTransform() as
|
||||
well.
|
||||
*/
|
||||
void QGraphicsItemPrivate::combineTransformFromParent(QTransform *x, const QTransform *viewTransform) const
|
||||
void QGraphicsItemPrivate::combineTransformFromParent(QTransform *x) const
|
||||
{
|
||||
// COMBINE
|
||||
if (viewTransform && itemIsUntransformable()) {
|
||||
*x = q_ptr->deviceTransform(*viewTransform);
|
||||
} else {
|
||||
x->translate(pos.x(), pos.y());
|
||||
if (transformData)
|
||||
*x = transformData->computedFullTransform(x);
|
||||
x->translate(pos.x(), pos.y());
|
||||
if (transformData) {
|
||||
*x = transformData->computedFullTransform(x);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -172,8 +172,8 @@ public:
|
|||
|| (ancestorFlags & AncestorIgnoresTransformations);
|
||||
}
|
||||
|
||||
void combineTransformToParent(QTransform *x, const QTransform *viewTransform = 0) const;
|
||||
void combineTransformFromParent(QTransform *x, const QTransform *viewTransform = 0) const;
|
||||
void combineTransformToParent(QTransform *x) const;
|
||||
void combineTransformFromParent(QTransform *x) const;
|
||||
void updateSceneTransformFromParent();
|
||||
|
||||
static bool movableAncestorIsSelected(const QGraphicsItem *item);
|
||||
|
|
Loading…
Add table
Reference in a new issue