mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 14:00:41 +02:00
Qt: fix TQtComboBox.EventFilter() result.
git-svn-id: trunk@16411 -
This commit is contained in:
parent
5f76c9b083
commit
44c94bd08b
@ -5875,12 +5875,12 @@ var
|
||||
str: WideString;
|
||||
begin
|
||||
BeginEventProcessing;
|
||||
|
||||
Result := False;
|
||||
QEvent_accept(Event);
|
||||
|
||||
if (FDropList <> nil) and (Sender = FDropList.Widget) then
|
||||
begin
|
||||
Result := False;
|
||||
|
||||
QEvent_accept(Event);
|
||||
|
||||
case QEvent_type(Event) of
|
||||
QEventShow: SlotDropListVisibility(True);
|
||||
QEventHide:
|
||||
@ -5923,7 +5923,6 @@ begin
|
||||
if TCustomComboBox(LCLObject).Items.IndexOf(Str) < 0 then
|
||||
TCustomComboBox(LCLObject).AddItem(Str, nil);
|
||||
end;
|
||||
QEvent_accept(Event);
|
||||
Result := SlotKey(Sender, Event);
|
||||
end;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user