summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-01 14:44:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-02 09:35:35 +0200
commite2da259b5733a36f8b4f934869f02ea7ee5163db (patch)
tree32c1c069a09c7c4e071ae6dc6bfec6f13873969b
parent99ffd249d1eb7669585a6f373ede7f5c5a81238e (diff)
SetCallHandlersOnInputDisabled is newly unused
Change-Id: I4225ce786b83f44178a477ac034d8f8f5198159e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101852 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--include/vcl/window.hxx17
-rw-r--r--vcl/source/window/window.cxx12
2 files changed, 0 insertions, 29 deletions
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index 24b74328dc63..458b225f26d8 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -983,23 +983,6 @@ public:
*/
void AlwaysDisableInput( bool bAlways, bool bChild = true );
- /** usually event handlers (see AddEventListener and AddChildEventListener)
- are not called on disabled, modal or input disabled windows. There are however rare cases
- in which one wants a Window or rather one of its Control subclasses to
- not evaluate events but still react to those events externally. In these
- rare cases call SetCallHandlersOnInputDisabled( true ) to have your handler
- called anyway.
-
- Currently only mouse events get this special treatment.
-
- Use this sparingly, chances are if you want to use it you're working around
- the real problem.
-
- @param bCall
- Enable/Disable calling event handlers for this disabled, modal or input disabled window.
- This call is implicitly done recursively for possible child windows.
- */
- void SetCallHandlersOnInputDisabled( bool bCall );
/** get state of SetCallHandlersOnInputDisabled
@returns whether handlers are called regardless of input enabled state
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 523dc5bdde77..e06a8cf1e961 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -2484,18 +2484,6 @@ void Window::Enable( bool bEnable, bool bChild )
ImplGenerateMouseMove();
}
-void Window::SetCallHandlersOnInputDisabled( bool bCall )
-{
- mpWindowImpl->mbCallHandlersDuringInputDisabled = bCall;
-
- VclPtr< vcl::Window > pChild = mpWindowImpl->mpFirstChild;
- while ( pChild )
- {
- pChild->SetCallHandlersOnInputDisabled( bCall );
- pChild = pChild->mpWindowImpl->mpNext;
- }
-}
-
bool Window::IsCallHandlersOnInputDisabled() const
{
return mpWindowImpl->mbCallHandlersDuringInputDisabled;