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 willShapeBeCut... functions static in Knife Tool
Agata Cacko6898b3229225
diff --git a/plugins/tools/tool_knife/CutThroughShapeStrategy.h b/plugins/tools/tool_knife/CutThroughShapeStrategy.hindex f9af77f7f2..fdbd340cd9 100644--- a/plugins/tools/tool_knife/CutThroughShapeStrategy.h+++ b/plugins/tools/tool_knife/CutThroughShapeStrategy.h@@ -39,8 +39,9 @@ private:qreal gutterWidthInDocumentCoordinates(qreal lineAngle);qreal calculateLineAngle(QPointF start, QPointF end);- bool willShapeBeCutGeneral(KoShape* referenceShape, const QPainterPath &srcOutline, const QRectF &leftOppositeRect, const QRectF &rightOppositeRect, bool checkGapLineRect, const QRectF &gapLineRect);- bool willShapeBeCutPrecise(const QPainterPath& srcOutline, const QLineF gapLine, const QLineF& leftLine, const QLineF& rightLine, const QPolygonF& gapLinePolygon);+ static bool willShapeBeCutGeneral(KoShape* referenceShape, const QPainterPath &srcOutline, const QRectF &leftOppositeRect, const QRectF &rightOppositeRect, bool checkGapLineRect, const QRectF &gapLineRect);+ static bool willShapeBeCutPrecise(const QPainterPath& srcOutline, const QLineF gapLine, const QLineF& leftLine, const QLineF& rightLine, const QPolygonF& gapLinePolygon);+static void initializeOutlineObjects(const QTransform &booleanWorkaroundTransform, QList<KoShape *> allShapes, QList<QPainterPath> &outSrcOutlines, QRectF &outOutlineRect);static void initializeGapShapes(QRectF outlineRect, QLineF leftLine, QLineF rightLine, QPainterPath& outLeft, QPainterPath& outRight,QPainterPath& outLeftOpposite, QPainterPath& outRightOpposite, QRectF& outGapLineRect, QPolygonF& outGapLinePolygon);