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:
zeljko 2010-05-21 20:32:17 +00:00
parent 14a4447dff
commit 143400e6ce
2 changed files with 2 additions and 7 deletions

View File

@ -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;
{------------------------------------------------------------------------------

View File

@ -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