mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 16:40:32 +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;
|
LCLObject.DoAdjustClientRectChange;
|
||||||
end;
|
end;
|
||||||
QEventWheel:
|
QEventWheel:
|
||||||
|
if not getEnabled then
|
||||||
|
inherited EventFilter(Sender, Event)
|
||||||
|
else
|
||||||
if (QtVersionMajor = 4) and (QtVersionMinor < 7) then
|
if (QtVersionMajor = 4) and (QtVersionMinor < 7) then
|
||||||
begin
|
begin
|
||||||
Result := SlotMouseWheel(Sender, Event);
|
Result := SlotMouseWheel(Sender, Event);
|
||||||
@ -12653,6 +12656,9 @@ begin
|
|||||||
else
|
else
|
||||||
if QEvent_type(Event) = QEventWheel then
|
if QEvent_type(Event) = QEventWheel then
|
||||||
begin
|
begin
|
||||||
|
if not getEnabled then
|
||||||
|
inherited EventFilter(Sender, Event)
|
||||||
|
else
|
||||||
if not horizontalScrollBar.getVisible and
|
if not horizontalScrollBar.getVisible and
|
||||||
not verticalScrollBar.getVisible then
|
not verticalScrollBar.getVisible then
|
||||||
Result := inherited EventFilter(Sender, Event)
|
Result := inherited EventFilter(Sender, Event)
|
||||||
|
Loading…
Reference in New Issue
Block a user