summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/spline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'spline-widget/spline.cpp')
-rw-r--r--spline-widget/spline.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/spline-widget/spline.cpp b/spline-widget/spline.cpp
index 4f60181e..7d0c8412 100644
--- a/spline-widget/spline.cpp
+++ b/spline-widget/spline.cpp
@@ -269,6 +269,12 @@ QList<QPointF> spline::getPoints() const
return s->points;
}
+int spline::get_point_count() const
+{
+ QMutexLocker foo(&_mutex);
+ return s->points.get().size();
+}
+
void spline::reload()
{
QMutexLocker foo(&_mutex);