mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 10:19:36 +02:00
*(Qt) fixed wrong cast in TQtWSWinControl.GetPreferredSize()
git-svn-id: trunk@11650 -
This commit is contained in:
parent
465f37f903
commit
e6d4a42970
@ -325,7 +325,7 @@ begin
|
|||||||
{$ifdef VerboseQt}
|
{$ifdef VerboseQt}
|
||||||
WriteLn('> TQtWSWinControl.GetPreferredSSize for ',dbgsname(AWinControl));
|
WriteLn('> TQtWSWinControl.GetPreferredSSize for ',dbgsname(AWinControl));
|
||||||
{$endif}
|
{$endif}
|
||||||
QWidget_sizeHint(TQtCheckBox(AWinControl.Handle).Widget, @PrefSize);
|
QWidget_sizeHint(TQtWidget(AWinControl.Handle).Widget, @PrefSize);
|
||||||
if (PrefSize.cx >= 0)
|
if (PrefSize.cx >= 0)
|
||||||
and (PrefSize.cy >=0) then
|
and (PrefSize.cy >=0) then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user