16 Q_FOREACH(
KoShape *shape, shapes) {
40 Q_FOREACH(
KoShape *shape, dependees) {
82 result.emplace_back(it->first, it->second);
91 qWarning() <<
"WARNING: KoShapeBulkActionLock is destroyed while being locked. Update rect will be lost!";
98 for (
auto it = updates.begin(); it != updates.end(); ++it) {
99 it->first->updateAbsolute(it->second);
KoShapeBulkActionLockAdapter(const QList< KoShape * > &shapes)
QList< KoShapeBulkActionInterface * > m_bulkInterfaceShapes
std::vector< Update > UpdatesList
void addBulkInterfaceDependees(const QList< KoShape * > dependees)
UpdatesList takeFinalUpdatesList()
std::unordered_map< KoShape *, QRectF > m_finalUpdates
void tryAddBulkInterfaceShape(KoShape *shape)
QList< KoShape * > m_normalUpdateShapes
static void bulkShapesUpdate(const UpdatesList &updates)
QList< KoShape * > dependees() const
Returns list of shapes depending on this shape.
virtual QRectF boundingRect() const
Get the bounding box of the shape.
#define KIS_SAFE_ASSERT_RECOVER(cond)
Interface for bulk actions on shapes.
virtual QRectF endBulkAction()=0
virtual void startBulkAction()=0