Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/tool/kis_tool_rectangle_base.cpp
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Line(s) | |||||
104 | } | 104 | } | ||
105 | bool KisToolRectangleBase::listeningToModifiers() | 105 | bool KisToolRectangleBase::listeningToModifiers() | ||
106 | { | 106 | { | ||
107 | return m_listenToModifiers; | 107 | return m_listenToModifiers; | ||
108 | } | 108 | } | ||
109 | 109 | | |||
110 | void KisToolRectangleBase::beginPrimaryAction(KoPointerEvent *event) | 110 | void KisToolRectangleBase::beginPrimaryAction(KoPointerEvent *event) | ||
111 | { | 111 | { | ||
112 | if ((m_type == PAINT && (!nodeEditable() || nodePaintAbility() == NONE)) || | 112 | if ((m_type == PAINT && (!nodeEditable() || nodePaintAbility() == UNPAINTABLE)) || | ||
113 | (m_type == SELECT && !selectionEditable())) { | 113 | (m_type == SELECT && !selectionEditable())) { | ||
114 | 114 | | |||
115 | event->ignore(); | 115 | event->ignore(); | ||
116 | return; | 116 | return; | ||
117 | } | 117 | } | ||
118 | setMode(KisTool::PAINT_MODE); | 118 | setMode(KisTool::PAINT_MODE); | ||
119 | 119 | | |||
120 | QPointF pos = convertToPixelCoordAndSnap(event, QPointF(), false); | 120 | QPointF pos = convertToPixelCoordAndSnap(event, QPointF(), false); | ||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |