From 952242a20cdc4a0248a95c1e1d61b1c213ae270a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 25 Nov 2020 12:13:14 +0000 Subject: factor out as a standalone "ButtonPressRepeater" class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id89d5655c2428cecdaf9faa224133302c6448a87 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106600 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- include/svx/gridctrl.hxx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'include/svx/gridctrl.hxx') diff --git a/include/svx/gridctrl.hxx b/include/svx/gridctrl.hxx index 1fb6c19951b6..d5d15d0054e4 100644 --- a/include/svx/gridctrl.hxx +++ b/include/svx/gridctrl.hxx @@ -190,8 +190,8 @@ class NavigationBar final : public InterimItemWindow std::unique_ptr m_xLastBtn; // Button for 'go to the last record' std::unique_ptr m_xNewBtn; // Button for 'go to a new record' - AutoTimer m_aNextRepeat; - AutoTimer m_aPrevRepeat; + weld::ButtonPressRepeater m_aPrevRepeater; + weld::ButtonPressRepeater m_aNextRepeater; sal_Int32 m_nCurrentPos; @@ -213,13 +213,6 @@ private: DECL_LINK(OnClick, weld::Button&, void); - DECL_LINK(PrevMousePressHdl, const MouseEvent&, bool); - DECL_LINK(PrevMouseReleaseHdl, const MouseEvent&, bool); - DECL_LINK(NextMousePressHdl, const MouseEvent&, bool); - DECL_LINK(NextMouseReleaseHdl, const MouseEvent&, bool); - DECL_LINK(PrevRepeatTimerHdl, Timer*, void); - DECL_LINK(NextRepeatTimerHdl, Timer*, void); - void PositionDataSource(sal_Int32 nRecord); }; -- cgit