diff options
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/ctrl.hxx | 10 | ||||
-rw-r--r-- | include/vcl/slider.hxx | 1 |
2 files changed, 6 insertions, 5 deletions
diff --git a/include/vcl/ctrl.hxx b/include/vcl/ctrl.hxx index 115d9dd87ea5..28bf572b54ac 100644 --- a/include/vcl/ctrl.hxx +++ b/include/vcl/ctrl.hxx @@ -42,8 +42,8 @@ protected: private: bool mbHasControlFocus; bool mbShowAccelerator; - Link<> maGetFocusHdl; - Link<> maLoseFocusHdl; + Link<Control&,void> maGetFocusHdl; + Link<Control&,void> maLoseFocusHdl; SAL_DLLPRIVATE void ImplInitControlData(); @@ -161,9 +161,9 @@ public: */ long ToRelativeLineIndex( long nIndex ) const; - void SetGetFocusHdl( const Link<>& rLink ) { maGetFocusHdl = rLink; } - void SetLoseFocusHdl( const Link<>& rLink ) { maLoseFocusHdl = rLink; } - const Link<>& GetLoseFocusHdl() const { return maLoseFocusHdl; } + void SetGetFocusHdl( const Link<Control&,void>& rLink ) { maGetFocusHdl = rLink; } + void SetLoseFocusHdl( const Link<Control&,void>& rLink ) { maLoseFocusHdl = rLink; } + const Link<Control&,void>& GetLoseFocusHdl() const { return maLoseFocusHdl; } /** determines whether the control currently has the focus */ diff --git a/include/vcl/slider.hxx b/include/vcl/slider.hxx index 46ab0f30c7d3..9423936f60ae 100644 --- a/include/vcl/slider.hxx +++ b/include/vcl/slider.hxx @@ -58,6 +58,7 @@ private: Link<Slider*,void> maEndSlideHdl; DECL_LINK(LinkedFieldModifyHdl, NumericField*); + DECL_LINK_TYPED(LinkedFieldLoseFocusHdl, Control&, void); using Control::ImplInitSettings; using Window::ImplInit; |