mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 07:59:28 +02:00
Qt: use another approach to find control under mouse in TQtDesignWidget.DesignControlEventFilter()
git-svn-id: trunk@19100 -
This commit is contained in:
parent
a98fc12775
commit
1b3da68c68
@ -9785,7 +9785,7 @@ begin
|
|||||||
p := QMouseEvent_pos(QMouseEventH(Event))^;
|
p := QMouseEvent_pos(QMouseEventH(Event))^;
|
||||||
OffsetMousePos(@p);
|
OffsetMousePos(@p);
|
||||||
pt := Point(p.x, p.y);
|
pt := Point(p.x, p.y);
|
||||||
Control := LCLObject.ControlAtPos(pt, True, True);
|
Control := LCLObject.ControlAtPos(pt, [capfRecursive, capfAllowWinControls]);
|
||||||
|
|
||||||
if Assigned(Control) and (Control is TWinControl) then
|
if Assigned(Control) and (Control is TWinControl) then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user