diff --git a/src/qt/spinctrl.cpp b/src/qt/spinctrl.cpp index a782d30906..5ea0ff9787 100644 --- a/src/qt/spinctrl.cpp +++ b/src/qt/spinctrl.cpp @@ -162,9 +162,25 @@ class wxQtDoubleSpinBox : public wxQtSpinBoxBase< QDoubleSpinBox > public: wxQtDoubleSpinBox( wxWindow *parent, wxControl *handler ) : wxQtSpinBoxBase< QDoubleSpinBox >( parent, handler ) - { } + { + connect(this, static_cast(&QDoubleSpinBox::valueChanged), + this, &wxQtDoubleSpinBox::valueChanged); + } +private: + void valueChanged(double value); }; +void wxQtDoubleSpinBox::valueChanged(double value) +{ + wxControl *handler = GetHandler(); + if ( handler ) + { + wxSpinDoubleEvent event( wxEVT_SPINCTRLDOUBLE, handler->GetId() ); + event.SetValue(value); + EmitEvent( event ); + } +} + //##############################################################################