mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 01:00:34 +01:00
Qt: removed selectAll() for TQtComboBox from it's eventFilter, LCL handles AutoSelect property.
git-svn-id: trunk@18497 -
This commit is contained in:
parent
d00e501765
commit
8f6f1fedbb
@ -6380,21 +6380,7 @@ begin
|
||||
QEvent_accept(Event);
|
||||
end;
|
||||
end;
|
||||
QEventFocusIn:
|
||||
begin
|
||||
if not (csDesigning in LCLObject.ComponentState) then
|
||||
if QFocusEvent_reason(QFocusEventH(Event)) in
|
||||
[QtTabFocusReason,QtBacktabFocusReason,QtActiveWindowFocusReason,
|
||||
QtShortcutFocusReason, QtOtherFocusReason] then
|
||||
begin
|
||||
if Assigned(LineEdit) and
|
||||
LineEdit.getEnabled and
|
||||
TComboBox(LCLObject).AutoSelect then
|
||||
LineEdit.selectAll;
|
||||
end;
|
||||
TCustomComboBox(LCLObject).IntfGetItems;
|
||||
end;
|
||||
|
||||
QEventFocusIn: TCustomComboBox(LCLObject).IntfGetItems;
|
||||
QEventKeyPress,
|
||||
QEventKeyRelease:
|
||||
begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user