diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-02-10 21:45:39 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-02-10 21:45:39 +1100 |
commit | aadc603afeca5657da9903ccb52e89cbb3ba5611 (patch) | |
tree | c5c3456321b7a6cab7a05dc6fae82d5f7e7792b5 /vcl | |
parent | 603ea975c19ac8826bd0cdf27fb59a9a21f765b4 (diff) |
vcl: actually remove ImplTranslateCommandEvent!
Change-Id: Ic120f83c5809074d082a86f677790ce9df35abcb
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/event.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx index a31c8026df15..04a4a7a43bf1 100644 --- a/vcl/source/window/event.cxx +++ b/vcl/source/window/event.cxx @@ -350,16 +350,6 @@ static MouseEvent ImplTranslateMouseEvent( const MouseEvent& rE, vcl::Window* pS return MouseEvent( pDest->ScreenToOutputPixel( aPos ), rE.GetClicks(), rE.GetMode(), rE.GetButtons(), rE.GetModifier() ); } -CommandEvent ImplTranslateCommandEvent( const CommandEvent& rCEvt, vcl::Window* pSource, vcl::Window* pDest ) -{ - if ( !rCEvt.IsMouseEvent() ) - return rCEvt; - - Point aPos = pSource->OutputToScreenPixel( rCEvt.GetMousePosPixel() ); - aPos = pDest->ScreenToOutputPixel( aPos ); - return CommandEvent( aPos, rCEvt.GetCommand(), rCEvt.IsMouseEvent(), rCEvt.GetEventData() ); -} - void Window::ImplNotifyKeyMouseCommandEventListeners( NotifyEvent& rNEvt ) { if( rNEvt.GetType() == MouseNotifyEvent::COMMAND ) |