qt: relocate also mousewheel messages for transparent windows

git-svn-id: trunk@52367 -
This commit is contained in:
ondrej 2016-05-23 16:24:35 +00:00
parent cf3cc81b4f
commit 181faec3ff

View File

@ -3865,11 +3865,27 @@ var
MousePos: TQtPoint;
Modifiers: QtKeyboardModifiers;
ModifierState: PtrInt;
TrgHandle: TQtWidget;
TrgControl: TWinControl;
{$IFDEF DARWIN}
CCtl: TQtAbstractScrollArea;
{$ENDIF}
begin
Result := False;
TrgHandle := Self;
TrgControl := LCLObject;
CheckTransparentWindow(TLCLIntfHandle(TrgHandle), TrgControl);
if (TrgHandle=nil) or (TrgControl=nil) then
begin
Exit;
end else
if (TrgHandle<>Self) then
begin
Result := TQtWidget(TrgHandle).SlotMouseWheel(Sender, Event);
Exit;
end;
if not CanSendLCLMessage then
exit;