mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 05:52:38 +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);
|
||||
begin
|
||||
QPainter_drawRoundRect(Widget, x, y, w, h, rx, ry);
|
||||
QPainter_drawRoundedRect(Widget, x, y, w, h, rx, ry);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
@ -4329,12 +4329,7 @@ begin
|
||||
{$Endif}
|
||||
Exit;
|
||||
end;
|
||||
|
||||
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;
|
||||
Result := inherited RoundRect(DC, X1, Y1, X2, Y2, RX, RY);
|
||||
end;
|
||||
{------------------------------------------------------------------------------
|
||||
Function: SaveDC: save DC state information to a stack
|
||||
|
Loading…
Reference in New Issue
Block a user