mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 10:40:24 +02:00
Qt: restored wheel problem, fix wasn't good (does not work for mac) and it was wrong to use spontaneous() flag of QEvent.
git-svn-id: trunk@12318 -
This commit is contained in:
parent
a2c2fa0c0d
commit
8225324ac4
@ -6442,16 +6442,10 @@ function TQtAbstractScrollArea.EventFilter(Sender: QObjectH; Event: QEventH): Bo
|
||||
begin
|
||||
case QEvent_type(Event) of
|
||||
QEventPaint,
|
||||
QEventLayoutRequest: Result := False;
|
||||
QEventLayoutRequest,
|
||||
QEventMouseButtonPress,
|
||||
QEventMouseButtonRelease,
|
||||
QEventMouseButtonDblClick,
|
||||
QEventWheel:
|
||||
begin
|
||||
Result := False;
|
||||
if QEvent_spontaneous(Event) then
|
||||
ViewPortEventFilter(Event, @Result);
|
||||
end;
|
||||
QEventMouseButtonDblClick: Result := False;
|
||||
else
|
||||
Result := inherited EventFilter(Sender, Event);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user