diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-06 18:34:03 +0200 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-10 10:31:58 +0200 | 
| commit | 61884594ceff59279abe5530c8c1af1870dc8fbb (patch) | |
| tree | c896d862a5dee2ea1647ab9f68961381339fc669 /spline/spline.cpp | |
| parent | 4ad996e116e78dd5f03c1ec47df2d380f6e23a68 (diff) | |
Revert "options/value: add `QObject::connect` wrapper"
This reverts commit a67e8630caf20e7f48151024e9e68dd9271d75c7.
Diffstat (limited to 'spline/spline.cpp')
| -rw-r--r-- | spline/spline.cpp | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/spline/spline.cpp b/spline/spline.cpp index aae7dd2e..ecbfc3a0 100644 --- a/spline/spline.cpp +++ b/spline/spline.cpp @@ -390,9 +390,12 @@ void spline::set_bundle(bundle b, const QString& axis_name, Axis axis)          invalidate_settings_();          S = s; -        conn_points = s->points.connect_to(&*ctx, [this] { invalidate_settings(); }, Qt::DirectConnection); -        conn_maxx   = s->opts.clamp_x_.connect_to(&*ctx, [this] { invalidate_settings(); }, Qt::DirectConnection); -        conn_maxy   = s->opts.clamp_y_.connect_to(&*ctx, [this] { invalidate_settings(); }, Qt::DirectConnection); +        conn_points = QObject::connect(&s->points, value_::value_changed<QList<QPointF>>(), +                                       &*ctx, [this] { invalidate_settings(); }, Qt::DirectConnection); +        conn_maxx   = QObject::connect(&s->opts.clamp_x_, value_::value_changed<int>(), +                                       &*ctx, [this](double) { invalidate_settings(); }, Qt::DirectConnection); +        conn_maxy   = QObject::connect(&s->opts.clamp_y_, value_::value_changed<int>(), +                                       &*ctx, [this](double) { invalidate_settings(); }, Qt::DirectConnection);      }      emit S->recomputed(); | 
