mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-08 08:57:30 +01:00
Qt: do not send mousewheel event to lcl when combobox is dropped down. issue #27675
git-svn-id: trunk@48394 -
This commit is contained in:
parent
77e59cf3b8
commit
6e3dd69f06
@ -8507,11 +8507,15 @@ begin
|
|||||||
// issue #25992
|
// issue #25992
|
||||||
if not getVisible then
|
if not getVisible then
|
||||||
Result := FOwner.SlotMouseWheel(FOwner.Widget, Event)
|
Result := FOwner.SlotMouseWheel(FOwner.Widget, Event)
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
// issue #27675.Do not send wheel event from cbox when dropped down.
|
||||||
|
// LCL thinks that combobox sent that event so we have undesirable effects.
|
||||||
|
if (FOwner.ChildOfComplexWidget = ccwComboBox) and getEnabled then
|
||||||
|
Result := False
|
||||||
else
|
else
|
||||||
Result := inherited EventFilter(Sender, Event);
|
Result := inherited EventFilter(Sender, Event);
|
||||||
|
end;
|
||||||
// DebugLn('TQtScrollBar.EventFilter: QEventWheel ',dbgsName(LCLObject),' Result=',dbgs(Result));
|
|
||||||
|
|
||||||
// do not scroll when disabled or issue #25992
|
// do not scroll when disabled or issue #25992
|
||||||
if not getEnabled then
|
if not getEnabled then
|
||||||
Result := True
|
Result := True
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user