mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 18:39:10 +02:00
Qt: Fix TQtLineEdit: don't fire TQtLineEdit.selectAll() via AutoSelect property during designtime.
git-svn-id: trunk@15892 -
This commit is contained in:
parent
65a1a5ece9
commit
277a9e21e0
@ -4860,6 +4860,8 @@ function TQtLineEdit.EventFilter(Sender: QObjectH; Event: QEventH): Boolean; cde
|
|||||||
begin
|
begin
|
||||||
case QEvent_type(Event) of
|
case QEvent_type(Event) of
|
||||||
QEventFocusIn:
|
QEventFocusIn:
|
||||||
|
begin
|
||||||
|
if not (csDesigning in LCLObject.ComponentState) then
|
||||||
begin
|
begin
|
||||||
if QFocusEvent_reason(QFocusEventH(Event)) in
|
if QFocusEvent_reason(QFocusEventH(Event)) in
|
||||||
[QtTabFocusReason,QtBacktabFocusReason,QtActiveWindowFocusReason,
|
[QtTabFocusReason,QtBacktabFocusReason,QtActiveWindowFocusReason,
|
||||||
@ -4872,6 +4874,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
Result := inherited EventFilter(Sender, Event);
|
Result := inherited EventFilter(Sender, Event);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user