diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-05 17:13:43 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-05 17:13:43 +0200 |
commit | 0b07159f32b28f775771ea37a4fa48fa94ef2d9e (patch) | |
tree | 003fb07103ec7c08e5416b9a8629cf0a8cafa8fc /spline-widget/spline.cpp | |
parent | c587590ddb8a4f76a134018155588e2470992600 (diff) |
spline-widget: add point count getter
Diffstat (limited to 'spline-widget/spline.cpp')
-rw-r--r-- | spline-widget/spline.cpp | 6 |
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); |