Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/tool/kis_tool.cc
Context not available. | |||||
524 | } | 524 | } | ||
---|---|---|---|---|---|
525 | } | 525 | } | ||
526 | 526 | | |||
527 | KisTool::NodePaintAbility KisTool::nodePaintAbility() | ||||
528 | { | ||||
529 | KisNodeSP node = currentNode(); | ||||
530 | if (!node) { | ||||
531 | return NodePaintAbility::UNPAINTABLE; | ||||
532 | } | ||||
533 | if (node->inherits("KisShapeLayer")) { | ||||
534 | return NodePaintAbility::VECTOR; | ||||
535 | } | ||||
536 | if (node->inherits("KisCloneLayer")) { | ||||
537 | return NodePaintAbility::CLONE; | ||||
538 | } | ||||
539 | if (node->paintDevice()) { | ||||
540 | return NodePaintAbility::PAINT; | ||||
541 | } | ||||
542 | | ||||
543 | return NodePaintAbility::UNPAINTABLE; | ||||
544 | } | ||||
545 | | ||||
527 | QWidget* KisTool::createOptionWidget() | 546 | QWidget* KisTool::createOptionWidget() | ||
528 | { | 547 | { | ||
529 | d->optionWidget = new QLabel(i18n("No options")); | 548 | d->optionWidget = new QLabel(i18n("No options")); | ||
Context not available. |