Krita Source Code Documentation
Loading...
Searching...
No Matches
KoPathBaseCommand.cpp
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2006 Jan Hambrecht <jaham@gmx.net>
3 * SPDX-FileCopyrightText: 2006, 2007 Thorsten Zachmann <zachmann@kde.org>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8#include "KoPathBaseCommand.h"
9#include "KoPathShape.h"
10
15
17 : KUndo2Command(parent)
18{
19 m_shapes.insert(shape);
20}
21
22void KoPathBaseCommand::repaint(bool normalizeShapes)
23{
24 Q_FOREACH (KoPathShape *shape, m_shapes) {
25 if (normalizeShapes)
26 shape->normalize();
27 shape->update();
28 }
29}
30
KoPathBaseCommand(KUndo2Command *parent=0)
QSet< KoPathShape * > m_shapes
the shapes the command operates on
void repaint(bool normalizeShapes)
The position of a path point within a path shape.
Definition KoPathShape.h:63
virtual QPointF normalize()
Normalizes the path data.
void update() const override
reimplemented