mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-10 11:17:14 +01:00
Qt: fix usage of TQtDesignWidget event filter
git-svn-id: trunk@19089 -
This commit is contained in:
parent
802244bbfa
commit
bd8923b25a
@ -9763,14 +9763,13 @@ end;
|
||||
|
||||
function TQtDesignWidget.DesignControlEventFilter(Sender: QObjectH; Event: QEventH): Boolean; cdecl;
|
||||
begin
|
||||
BeginEventProcessing;
|
||||
Result := False;
|
||||
if LCLObject <> nil then
|
||||
begin
|
||||
QEvent_Accept(Event);
|
||||
case QEvent_type(Event) of
|
||||
QEventPaint: SlotDesignControlPaint(Sender, Event);
|
||||
end;
|
||||
QEvent_Accept(Event);
|
||||
if LCLObject = nil then
|
||||
exit;
|
||||
BeginEventProcessing;
|
||||
case QEvent_type(Event) of
|
||||
QEventPaint: SlotDesignControlPaint(Sender, Event);
|
||||
end;
|
||||
EndEventProcessing;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user