diff options
author | Saurav Chirania <saurav.chir@gmail.com> | 2018-07-04 13:55:50 +0530 |
---|---|---|
committer | Saurav Chirania <saurav.chir@gmail.com> | 2018-07-06 19:44:40 +0200 |
commit | 09e8815066c133b6a53fd5bc2f3d3ab8ad6e4248 (patch) | |
tree | 17763596ab313bcc75bfc2b37f177ad228aceb62 /vcl/source/control/ctrl.cxx | |
parent | 8801cf6fbe3959cb1485a06fb86a41cc05b28ac6 (diff) |
uitest logger: log the events calling CallEventListeners()
Some events directly call CallEventListeners() instead
of calling ImplCallEventListenersAndHandler.
This patch thus moves logAction to CallEventListeners()
Further, this patch adds logging for EditSelectionChanged
which is broadcasted using CallEventListeners().
Change-Id: Ib15367688cdbcdb542f6139d270d8d463f214fde
Reviewed-on: https://gerrit.libreoffice.org/56952
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'vcl/source/control/ctrl.cxx')
-rw-r--r-- | vcl/source/control/ctrl.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx index a807409bdd2d..edf535e2968e 100644 --- a/vcl/source/control/ctrl.cxx +++ b/vcl/source/control/ctrl.cxx @@ -296,12 +296,19 @@ void Control::AppendLayoutData( const Control& rSubControl ) const } } -bool Control::ImplCallEventListenersAndHandler( VclEventId nEvent, std::function<void()> const & callHandler ) +void Control::CallEventListeners( VclEventId nEvent, void* pData) { VclPtr<Control> xThis(this); UITestLogger::getInstance().logAction(xThis, nEvent); - CallEventListeners( nEvent ); + vcl::Window::CallEventListeners(nEvent, pData); +} + +bool Control::ImplCallEventListenersAndHandler( VclEventId nEvent, std::function<void()> const & callHandler ) +{ + VclPtr<Control> xThis(this); + + Control::CallEventListeners( nEvent ); if ( !xThis->IsDisposed() ) { |