mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 23:19:26 +02:00
qt: relocate also mousewheel messages for transparent windows
git-svn-id: trunk@52367 -
This commit is contained in:
parent
cf3cc81b4f
commit
181faec3ff
@ -3865,11 +3865,27 @@ var
|
|||||||
MousePos: TQtPoint;
|
MousePos: TQtPoint;
|
||||||
Modifiers: QtKeyboardModifiers;
|
Modifiers: QtKeyboardModifiers;
|
||||||
ModifierState: PtrInt;
|
ModifierState: PtrInt;
|
||||||
|
TrgHandle: TQtWidget;
|
||||||
|
TrgControl: TWinControl;
|
||||||
{$IFDEF DARWIN}
|
{$IFDEF DARWIN}
|
||||||
CCtl: TQtAbstractScrollArea;
|
CCtl: TQtAbstractScrollArea;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
begin
|
begin
|
||||||
Result := False;
|
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
|
if not CanSendLCLMessage then
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user