mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-25 18:37:28 +01:00
Qt: do not send resize event if lineedit is child of combobox when csDesigning or TQtComboBox().InUpdate. Fixes bad behaviour when resizing editable combobox during design or runtime.
git-svn-id: trunk@31209 -
This commit is contained in:
parent
23d4607e5d
commit
d5a9fc581d
@ -6485,11 +6485,13 @@ begin
|
||||
QEvent_accept(Event);
|
||||
if LCLObject = nil then
|
||||
exit;
|
||||
|
||||
if (ChildOfComplexWidget = ccwComboBox) and
|
||||
(QEvent_type(Event) = QEventPaint) and
|
||||
(LCLObject.HandleAllocated) then
|
||||
((QEvent_type(Event) = QEventPaint) or (QEvent_type(Event) = QEventResize))
|
||||
and (LCLObject.HandleAllocated) then
|
||||
begin
|
||||
Result := TQtComboBox(LCLObject.Handle).InUpdate;
|
||||
Result := TQtComboBox(LCLObject.Handle).InUpdate or
|
||||
(csDesigning in LCLObject.ComponentState);
|
||||
if Result then
|
||||
QEvent_ignore(Event)
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user