summaryrefslogtreecommitdiffhomepage
path: root/spline/spline-widget.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-widget.cpp
parentb49e0ddadc5dc0c818cd3bff00923fad6c058d3f (diff)
spline: prepare for widget in tobii tracker dialog
Diffstat (limited to 'spline/spline-widget.cpp')
-rw-r--r--spline/spline-widget.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/spline/spline-widget.cpp b/spline/spline-widget.cpp
index 72f6370e..9a0ae08e 100644
--- a/spline/spline-widget.cpp
+++ b/spline/spline-widget.cpp
@@ -47,7 +47,7 @@ spline_widget::~spline_widget()
QObject::disconnect(connection);
}
-void spline_widget::setConfig(spline* spl)
+void spline_widget::setConfig(base_spline* spl)
{
if (connection)
{
@@ -61,8 +61,8 @@ void spline_widget::setConfig(spline* spl)
{
update_range();
- std::shared_ptr<spline::settings> s = spl->get_settings();
- connection = connect(s.get(), &spline::settings::recomputed,
+ std::shared_ptr<base_spline::base_settings> s = spl->get_settings();
+ connection = connect(s.get(), &spline::base_settings::recomputed,
this, [this]() { reload_spline(); },
Qt::QueuedConnection);
}
@@ -516,11 +516,6 @@ void spline_widget::mouseReleaseEvent(QMouseEvent *e)
void spline_widget::reload_spline()
{
- if (_config)
- {
- QList<QPointF> pts = _config->get_points();
- _config->ensure_valid(pts);
- }
// don't recompute here as the value's about to be recomputed in the callee
update_range();
update();