Skip to content

armgit / krita

Public Imported from GitHub
0

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++

Python: Rename paintStroke to paintPolylineStroke.

Emmet O'Neillc7b05604b38f
diff --git a/libs/libkis/Node.cpp b/libs/libkis/Node.cpp
index 1ec66ee71a..006a1aef62 100644
--- a/libs/libkis/Node.cpp
+++ b/libs/libkis/Node.cpp
@@ -884,10 +884,10 @@ void Node::paintLine(const QPointF pointOne, const QPointF pointTwo, double pres
helper.paintLine(pointOneInfo, pointTwoInfo);
}
-void Node::paintStroke(const QList<StrokePoint> &points, const QString strokeStyle)
+void Node::paintPolylineStroke(const QList<StrokePoint> &points, const QString strokeStyle)
{
if (paintAbility() != "PAINT") {
- dbgScript << "Script attempted to use Node::paintStroke() on an unpaintable node, ignoring.";
+ dbgScript << "Script attempted to use Node::paintPolylineStroke() on an unpaintable node, ignoring.";
return;
}
diff --git a/libs/libkis/Node.h b/libs/libkis/Node.h
index b852671109..0bd8a39f16 100644
--- a/libs/libkis/Node.h
+++ b/libs/libkis/Node.h
@@ -593,7 +593,7 @@ public Q_SLOTS:
const QString strokeStyle = PaintingResources::defaultStrokeStyle);
/**
- * @brief paintStroke paint one continuous brush stroke with complete input
+ * @brief paintPolylineStroke paint one continuous brush stroke with complete input
* information for every supplied point. Uses the current brush preset.
*
* The stroke is submitted as one undoable freehand stroke, so brush
@@ -604,7 +604,7 @@ public Q_SLOTS:
* milliseconds from the beginning of the stroke; speed is normalized.
* @param strokeStyle appearance of the outline; see paintLine().
*/
- void paintStroke(const QList<StrokePoint> &points,
+ void paintPolylineStroke(const QList<StrokePoint> &points,
const QString strokeStyle = PaintingResources::defaultStrokeStyle);
/**
diff --git a/plugins/extensions/pykrita/sip/krita/Node.sip b/plugins/extensions/pykrita/sip/krita/Node.sip
index 1783747d91..a02bcc2310 100644
--- a/plugins/extensions/pykrita/sip/krita/Node.sip
+++ b/plugins/extensions/pykrita/sip/krita/Node.sip
@@ -83,7 +83,7 @@ public Q_SLOTS:
QUuid uniqueId() const;
void paintLine(const QPoint pointOne, const QPoint pointTwo, double pressureOne = 1.0, double pressureTwo = 1.0, const QString strokeStyle = "ForegroundColor");
- void paintStroke(const QList<StrokePoint> &points, const QString strokeStyle = "ForegroundColor");
+ void paintPolylineStroke(const QList<StrokePoint> &points, const QString strokeStyle = "ForegroundColor");
void paintRectangle(const QRectF &rect, const QString strokeStyle = "ForegroundColor", const QString fillStyle = "None");
void paintPolygon(const QList<QPointF> points, const QString strokeStyle = "ForegroundColor", const QString fillStyle = "None");
void paintEllipse(const QRectF &rect, const QString strokeStyle = "ForegroundColor", const QString fillStyle = "None");