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++
Fix building KisAlgebra2DTest on Qt6
Dmitry Kazakov3aeef9739144
diff --git a/libs/image/tests/kis_algebra_2d_test.cpp b/libs/image/tests/kis_algebra_2d_test.cppindex 30368d2a9a..6e8d820df2 100644--- a/libs/image/tests/kis_algebra_2d_test.cpp+++ b/libs/image/tests/kis_algebra_2d_test.cpp@@ -1288,7 +1288,6 @@ QPainterPath makeSpecialShape(bool left)}-QPainterPath fromPolygon(QPolygonF poly) {QPainterPath path;path.addPolygon(poly);@@ -1300,11 +1299,14 @@ QPainterPath fromPolygon(QVector<QPointF> poly) {return fromPolygon(QPolygonF(poly));}+QPainterPath fromPolygon(std::initializer_list<QPointF> poly) {+ return fromPolygon(QPolygonF(poly));+}+QPolygonF toPolygon(const QPainterPath& path) {return path.toFillPolygon();}-void testRemoveGutterOneCase(const QString testName, const QPainterPath& shape1, const QPainterPath& shape2, const QLineF& mouseLine, bool isSameShape = false, int expectedSize = -1, const QPainterPath &expectedPath = QPainterPath()){qreal eps = 1e-2;