mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 15:50:16 +02:00
Qt: Fixed crash on abstractscrollarea introduced by latest patch.
git-svn-id: trunk@12306 -
This commit is contained in:
parent
9e05f89ab6
commit
17de2cbca3
@ -6410,16 +6410,10 @@ end;
|
||||
|
||||
function TQtAbstractScrollArea.ViewPortEventFilter(Sender: QObjectH; Event: QEventH): Boolean; cdecl;
|
||||
begin
|
||||
{$ifdef VerboseViewPortEventFilter}
|
||||
WriteLn(QEvent_type(Event));
|
||||
{$endif}
|
||||
Result := False;
|
||||
QEvent_accept(Event);
|
||||
case QEvent_type(Event) of
|
||||
QEventPaint : viewport.SlotPaint(Sender, Event);
|
||||
else
|
||||
Result := QLCLAbstractScrollArea_InheritedViewportEvent(QLCLAbstractScrollAreaH(Widget), Event);
|
||||
end;
|
||||
{$ifdef VerboseViewPortEventFilter}
|
||||
WriteLn(QEvent_type(Event));
|
||||
{$endif}
|
||||
Result := QLCLAbstractScrollArea_InheritedViewportEvent(QLCLAbstractScrollAreaH(Widget), Event);
|
||||
end;
|
||||
|
||||
procedure TQtAbstractScrollArea.DestroyNotify(AWidget: TQtWidget);
|
||||
|
Loading…
Reference in New Issue
Block a user