Commit 29204fa5 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fixed the Outline updates while Shift+gesture is active

parent 25e07387
......@@ -216,20 +216,16 @@ void KisToolFreehand::mouseMoveEvent(KoPointerEvent *e)
/**
* Update outline
*/
if (mode() == KisTool::HOVER_MODE ||
mode() == KisTool::PAINT_MODE) {
if (mode() == KisTool::PAINT_MODE) {
requestUpdateOutline(e->point);
}
if (mode() != KisTool::PAINT_MODE) {
/**
* Actual painting
*/
doStroke(e);
} else {
KisToolPaint::mouseMoveEvent(e);
return;
}
/**
* Actual painting
*/
doStroke(e);
}
void KisToolFreehand::mouseReleaseEvent(KoPointerEvent* e)
......
......@@ -221,7 +221,9 @@ void KisToolPaint::mousePressEvent(KoPointerEvent *event)
}
else {
KisTool::mousePressEvent(event);
requestUpdateOutline(event->point);
if (mode() == KisTool::HOVER_MODE) {
requestUpdateOutline(event->point);
}
}
}
......@@ -234,7 +236,9 @@ void KisToolPaint::mouseMoveEvent(KoPointerEvent *event)
}
else {
KisTool::mouseMoveEvent(event);
requestUpdateOutline(event->point);
if (mode() == KisTool::HOVER_MODE) {
requestUpdateOutline(event->point);
}
}
}
......@@ -246,7 +250,9 @@ void KisToolPaint::mouseReleaseEvent(KoPointerEvent *event)
event->accept();
} else {
KisTool::mouseReleaseEvent(event);
requestUpdateOutline(event->point);
if (mode() == KisTool::HOVER_MODE) {
requestUpdateOutline(event->point);
}
}
}
......@@ -517,6 +523,8 @@ void KisToolPaint::decreaseBrushSize()
void KisToolPaint::requestUpdateOutline(const QPointF &outlineDocPoint)
{
qDebug() << "requestUpdateOutline" << outlineDocPoint;
KisConfig cfg;
KisPaintOpSettings::OutlineMode outlineMode;
outlineMode = KisPaintOpSettings::CursorIsNotOutline;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment