Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgMoveTextCommand.cpp File Reference
#include "SvgMoveTextCommand.h"
#include <klocalizedstring.h>
#include "KoSvgTextShape.h"
#include "kis_command_ids.h"

Go to the source code of this file.

Functions

static void moveShape (KoSvgTextShape *shape, const QPointF &position)
 

Function Documentation

◆ moveShape()

static void moveShape ( KoSvgTextShape * shape,
const QPointF & position )
static

Definition at line 26 of file SvgMoveTextCommand.cpp.

27{
28 QRectF updateRect = shape->boundingRect();
29 shape->setAbsolutePosition(position);
30 updateRect |= shape->boundingRect();
31 shape->updateAbsolute(updateRect);
32}
virtual void updateAbsolute(const QRectF &rect) const
Definition KoShape.cpp:616
void setAbsolutePosition(const QPointF &newPosition, KoFlake::AnchorPosition anchor=KoFlake::Center)
Definition KoShape.cpp:668
QRectF boundingRect() const override
Get the bounding box of the shape.

References KoSvgTextShape::boundingRect(), KoShape::setAbsolutePosition(), and KoShape::updateAbsolute().