35 if (roundCornersX > 0 || roundCornersY > 0) {
36 path.addRoundedRect(
rect, roundCornersX, roundCornersY);
60 QPointF rightMiddle = QPointF(
rect.left() +
rect.width(),
rect.top() +
rect.height() / 2);
61 path->moveTo(rightMiddle);
62 path->arcTo(
rect.width() / 2,
rect.height() / 2, 0, 360.0);
const T value(const QString &id) const
The position of a path point within a path shape.
virtual QPointF normalize()
Normalizes the path data.
static KoPathShape * createShapeFromPainterPath(const QPainterPath &path)
Creates path shape from given QPainterPath.
void setProperty(const QString &name, const QVariant &value)
virtual KoShape * createDefaultShape(KoDocumentResourceManager *documentResources=0) const
virtual KoShape * createShape(const KoProperties *params, KoDocumentResourceManager *documentResources=0) const
static KoShapeRegistry * instance()
virtual void setPosition(const QPointF &position)
Set the position of the shape in pt.
virtual void setSize(const QSizeF &size)
Resize the shape.