mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-21 16:43:42 +02:00
(Qt):
misc git-svn-id: trunk@11601 -
This commit is contained in:
parent
84ff0b4f07
commit
9dc38f304f
@ -5186,6 +5186,7 @@ begin
|
||||
FViewPortWidget := NiL;
|
||||
Parent := TQtWidget(LCLObject.Parent.Handle).GetContainerWidget;
|
||||
Result := QScrollArea_create(Parent);
|
||||
QWidget_setVisible(Result, False);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
@ -2935,7 +2935,6 @@ function TQtWidgetSet.RectVisible(dc : hdc; const ARect: TRect) : Boolean;
|
||||
var
|
||||
w: QWidgetH;
|
||||
Region: QRegionH;
|
||||
R: PRect;
|
||||
begin
|
||||
{$ifdef VerboseQtWinAPI}
|
||||
writeln('[WinAPI RectVisible] ');
|
||||
@ -2950,13 +2949,7 @@ begin
|
||||
Region := QRegion_create;
|
||||
try
|
||||
QWidget_visibleRegion(w, Region);
|
||||
New(R);
|
||||
try
|
||||
R^ := ARect;
|
||||
Result := QRegion_contains(Region, R);
|
||||
finally
|
||||
Dispose(R);
|
||||
end;
|
||||
Result := QRegion_contains(Region, PRect(@ARect));
|
||||
finally
|
||||
QRegion_destroy(Region);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user