mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 12:39:29 +02:00
Qt: pass mouse wheel from TCustomControls to parent widget if control is disabled. part of #20402
git-svn-id: trunk@32694 -
This commit is contained in:
parent
e3733ed9ff
commit
c208ba977d
@ -12233,6 +12233,9 @@ begin
|
||||
LCLObject.DoAdjustClientRectChange;
|
||||
end;
|
||||
QEventWheel:
|
||||
if not getEnabled then
|
||||
inherited EventFilter(Sender, Event)
|
||||
else
|
||||
if (QtVersionMajor = 4) and (QtVersionMinor < 7) then
|
||||
begin
|
||||
Result := SlotMouseWheel(Sender, Event);
|
||||
@ -12653,6 +12656,9 @@ begin
|
||||
else
|
||||
if QEvent_type(Event) = QEventWheel then
|
||||
begin
|
||||
if not getEnabled then
|
||||
inherited EventFilter(Sender, Event)
|
||||
else
|
||||
if not horizontalScrollBar.getVisible and
|
||||
not verticalScrollBar.getVisible then
|
||||
Result := inherited EventFilter(Sender, Event)
|
||||
|
Loading…
Reference in New Issue
Block a user