diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-06-29 13:00:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-06-29 17:06:13 +0200 |
commit | 67b157e994d9bef01f6117b53fc29e1fee538715 (patch) | |
tree | e587357f63c27822e00e8b67a494f6b895104aaa /vcl/inc | |
parent | 351b6b9c1fddc3cebc98036aebeeffd4dd44cc3c (diff) |
tdf#143088 multiple Application::EventListeners is expensive
use a Window level Listener and a WindowChild Listener instead
An example for the need to listener to children is the calc conditional
formatting dialog where clicking on any subentry of an collapsed entry
is expected to expand that entry
Change-Id: Ifead2fc1b75457d3ad314fdf15d343395afae6d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118086
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/salvtables.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx index 4a65d22b6c58..19248988af6f 100644 --- a/vcl/inc/salvtables.hxx +++ b/vcl/inc/salvtables.hxx @@ -175,7 +175,7 @@ protected: private: DECL_LINK(EventListener, VclWindowEvent&, void); DECL_LINK(KeyEventListener, VclWindowEvent&, bool); - DECL_LINK(MouseEventListener, VclSimpleEvent&, void); + DECL_LINK(MouseEventListener, VclWindowEvent&, void); DECL_LINK(MnemonicActivateHdl, vcl::Window&, bool); static void DoRecursivePaint(vcl::Window* pWindow, const Point& rPos, OutputDevice& rOutput); @@ -204,7 +204,7 @@ protected: virtual void HandleEventListener(VclWindowEvent& rEvent); virtual bool HandleKeyEventListener(VclWindowEvent& rEvent); - virtual void HandleMouseEventListener(VclSimpleEvent& rEvent); + virtual void HandleMouseEventListener(VclWindowEvent& rEvent); public: SalInstanceWidget(vcl::Window* pWidget, SalInstanceBuilder* pBuilder, bool bTakeOwnership); @@ -1143,7 +1143,7 @@ private: // in VclDrawingArea virtual void HandleEventListener(VclWindowEvent& rEvent) override; - virtual void HandleMouseEventListener(VclSimpleEvent& rEvent) override; + virtual void HandleMouseEventListener(VclWindowEvent& rEvent) override; virtual bool HandleKeyEventListener(VclWindowEvent& /*rEvent*/) override; |