Qt: fix usage of TQtDesignWidget event filter

git-svn-id: trunk@19089 -
This commit is contained in:
zeljko 2009-03-24 10:44:01 +00:00
parent 802244bbfa
commit bd8923b25a

View File

@ -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;