vcl/source/window/event.cxx | 10 ---------- 1 file changed, 10 deletions(-)
New commits: commit aadc603afeca5657da9903ccb52e89cbb3ba5611 Author: Chris Sherlock <chris.sherloc...@gmail.com> Date: Wed Feb 10 21:45:39 2016 +1100 vcl: actually remove ImplTranslateCommandEvent! Change-Id: Ic120f83c5809074d082a86f677790ce9df35abcb diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx index a31c802..04a4a7a 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 ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits