Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Make text tool work with touch drawing
Carsten Hartenfelsd34344cc28ad
diff --git a/plugins/tools/svgtexttool/SvgTextTool.cpp b/plugins/tools/svgtexttool/SvgTextTool.cppindex a3bd24a135..15381afc2c 100644--- a/plugins/tools/svgtexttool/SvgTextTool.cpp+++ b/plugins/tools/svgtexttool/SvgTextTool.cpp@@ -762,6 +762,13 @@ void SvgTextTool::paint(QPainter &gc, const KoViewConverter &converter)void SvgTextTool::mousePressEvent(KoPointerEvent *event){+ // When using touch drawing, we only ever receive move events after the+ // finger has pressed down. We have to issue an artificial move here so that+ // the tool's state is updated properly to handle the press.+ if (event->isTouchEvent()) {+ mouseMoveEvent(event);+ }+KoSvgTextShape *selectedShape = this->selectedShape();if (selectedShape) {