Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/tool/kis_tool.cc
Show First 20 Lines • Show All 544 Lines • ▼ Show 20 Line(s) | 544 | { | |||
---|---|---|---|---|---|
545 | Q_UNUSED(event); | 545 | Q_UNUSED(event); | ||
546 | } | 546 | } | ||
547 | 547 | | |||
548 | void KisTool::deleteSelection() | 548 | void KisTool::deleteSelection() | ||
549 | { | 549 | { | ||
550 | KisResourcesSnapshotSP resources = | 550 | KisResourcesSnapshotSP resources = | ||
551 | new KisResourcesSnapshot(image(), currentNode(), this->canvas()->resourceManager()); | 551 | new KisResourcesSnapshot(image(), currentNode(), this->canvas()->resourceManager()); | ||
552 | 552 | | |||
553 | KisCanvas2 * kiscanvas = static_cast<KisCanvas2*>(canvas()); | ||||
554 | KisViewManager* viewManager = kiscanvas->viewManager(); | ||||
555 | viewManager->blockUntillOperationsFinished(image()); | ||||
556 | | ||||
553 | if (!KisToolUtils::clearImage(image(), resources->currentNode(), resources->activeSelection())) { | 557 | if (!KisToolUtils::clearImage(image(), resources->currentNode(), resources->activeSelection())) { | ||
554 | KoToolBase::deleteSelection(); | 558 | KoToolBase::deleteSelection(); | ||
555 | } | 559 | } | ||
556 | } | 560 | } | ||
557 | 561 | | |||
558 | void KisTool::setupPaintAction(KisRecordedPaintAction* action) | 562 | void KisTool::setupPaintAction(KisRecordedPaintAction* action) | ||
559 | { | 563 | { | ||
560 | action->setPaintColor(currentFgColor()); | 564 | action->setPaintColor(currentFgColor()); | ||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |