mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-07 07:57:13 +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
@ -8508,10 +8508,14 @@ begin
|
||||
if not getVisible then
|
||||
Result := FOwner.SlotMouseWheel(FOwner.Widget, Event)
|
||||
else
|
||||
Result := inherited EventFilter(Sender, Event);
|
||||
|
||||
// DebugLn('TQtScrollBar.EventFilter: QEventWheel ',dbgsName(LCLObject),' Result=',dbgs(Result));
|
||||
|
||||
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
|
||||
Result := inherited EventFilter(Sender, Event);
|
||||
end;
|
||||
// do not scroll when disabled or issue #25992
|
||||
if not getEnabled then
|
||||
Result := True
|
||||
|
||||
Loading…
Reference in New Issue
Block a user