Qt: removed selectAll() for TQtComboBox from it's eventFilter, LCL handles AutoSelect property.

git-svn-id: trunk@18497 -
This commit is contained in:
zeljko 2009-01-29 16:15:13 +00:00
parent d00e501765
commit 8f6f1fedbb

View File

@ -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