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:
zeljko 2011-06-14 07:21:31 +00:00
parent 23d4607e5d
commit d5a9fc581d

View File

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