summaryrefslogtreecommitdiffhomepage
path: root/spline/spline.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-12-21 02:05:09 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-12-21 02:05:09 +0100
commit62564a1cb38951b74934507af2a0ffc6755c41ad (patch)
treef56eb6e2927775105144f13cc196b6eba097aed9 /spline/spline.cpp
parentb49e0ddadc5dc0c818cd3bff00923fad6c058d3f (diff)
spline: prepare for widget in tobii tracker dialog
Diffstat (limited to 'spline/spline.cpp')
-rw-r--r--spline/spline.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/spline/spline.cpp b/spline/spline.cpp
index 40a9164b..2fe73a01 100644
--- a/spline/spline.cpp
+++ b/spline/spline.cpp
@@ -301,7 +301,7 @@ void spline::move_point(int idx, QPointF pt)
}
}
-QList<QPointF> spline::get_points() const
+spline::points_t spline::get_points() const
{
QMutexLocker foo(&_mutex);
return s->points;
@@ -454,16 +454,16 @@ void spline::ensure_valid(QList<QPointF>& the_points)
}
// the return value is only safe to use with no spline::set_bundle calls
-std::shared_ptr<settings> spline::get_settings()
+std::shared_ptr<base_settings> spline::get_settings()
{
QMutexLocker foo(&_mutex);
- return s;
+ return std::static_pointer_cast<base_settings>(s);
}
-std::shared_ptr<const settings> spline::get_settings() const
+std::shared_ptr<const base_settings> spline::get_settings() const
{
QMutexLocker foo(&_mutex);
- return s;
+ return std::static_pointer_cast<const base_settings>(s);
}
double spline::bucket_size_coefficient(const QList<QPointF>& points) const
@@ -497,3 +497,4 @@ settings::~settings()
}
}
+