Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/tool/kis_tool_polyline_base.cpp
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | |||||
74 | { | 74 | { | ||
75 | return !m_points.isEmpty(); | 75 | return !m_points.isEmpty(); | ||
76 | } | 76 | } | ||
77 | 77 | | |||
78 | void KisToolPolylineBase::beginPrimaryAction(KoPointerEvent *event) | 78 | void KisToolPolylineBase::beginPrimaryAction(KoPointerEvent *event) | ||
79 | { | 79 | { | ||
80 | Q_UNUSED(event); | 80 | Q_UNUSED(event); | ||
81 | 81 | | |||
82 | if ((m_type == PAINT && (!nodeEditable() || nodePaintAbility() == NONE)) || | 82 | if ((m_type == PAINT && (!nodeEditable() || nodePaintAbility() == UNPAINTABLE)) || | ||
83 | (m_type == SELECT && !selectionEditable())) { | 83 | (m_type == SELECT && !selectionEditable())) { | ||
84 | 84 | | |||
85 | event->ignore(); | 85 | event->ignore(); | ||
86 | return; | 86 | return; | ||
87 | } | 87 | } | ||
88 | 88 | | |||
89 | setMode(KisTool::PAINT_MODE); | 89 | setMode(KisTool::PAINT_MODE); | ||
90 | 90 | | |||
▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines |