mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 20:19:24 +02:00
parent
bc98657cb3
commit
ec76a4c4ac
@ -327,13 +327,20 @@ var
|
||||
OldWidget, NewWidget: TQtWidget;
|
||||
Msg: TLMessage;
|
||||
begin
|
||||
//WriteLn('old: ', PtrUInt(old), ' new: ', PtrUInt(now));
|
||||
// WriteLn('old: ', PtrUInt(old), ' new: ', PtrUInt(now));
|
||||
OldWidget := GetFirstQtObjectFromWidgetH(old);
|
||||
NewWidget := GetFirstQtObjectFromWidgetH(now);
|
||||
|
||||
if OldWidget = NewWidget then
|
||||
Exit;
|
||||
|
||||
|
||||
{Applies to all TQtWidgets which have "subwidgets" created
|
||||
by CreateFrom() eg. comboBox.}
|
||||
if (OldWidget <> nil) and
|
||||
(NewWidget <> nil) and
|
||||
(OldWidget.LCLObject = NewWidget.LCLObject) then
|
||||
exit;
|
||||
|
||||
FillChar(Msg, SizeOf(Msg), 0);
|
||||
if OldWidget <> nil then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user