mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 04:18:18 +02:00
Qt: use LCL's RoundRect() instead of qt's, call QPainter_roundedRect() instead QPainter_roundRect() since roundedRect() is what LCL expects.
git-svn-id: trunk@25571 -
This commit is contained in:
parent
14a4447dff
commit
143400e6ce
@ -2314,7 +2314,7 @@ end;
|
|||||||
|
|
||||||
procedure TQtDeviceContext.drawRoundRect(x, y, w, h, rx, ry: Integer);
|
procedure TQtDeviceContext.drawRoundRect(x, y, w, h, rx, ry: Integer);
|
||||||
begin
|
begin
|
||||||
QPainter_drawRoundRect(Widget, x, y, w, h, rx, ry);
|
QPainter_drawRoundedRect(Widget, x, y, w, h, rx, ry);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
|
@ -4329,12 +4329,7 @@ begin
|
|||||||
{$Endif}
|
{$Endif}
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
|
Result := inherited RoundRect(DC, X1, Y1, X2, Y2, RX, RY);
|
||||||
R := NormalizeRect(Rect(X1, Y1, X2, Y2));
|
|
||||||
if IsRectEmpty(R) then Exit(True);
|
|
||||||
|
|
||||||
TQtDeviceContext(Dc).drawRoundRect(R.Left, R.Top, R.Right - R.Left - 1, R.Bottom - R.Top - 1, RX, RY);
|
|
||||||
Result := True;
|
|
||||||
end;
|
end;
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
Function: SaveDC: save DC state information to a stack
|
Function: SaveDC: save DC state information to a stack
|
||||||
|
Loading…
Reference in New Issue
Block a user