Qt5: simplified code

git-svn-id: trunk@62898 -
This commit is contained in:
zeljko 2020-04-06 12:30:21 +00:00
parent fee54a4bf2
commit 6ae0f6b158

View File

@ -3285,11 +3285,8 @@ begin
end;
function TQtDeviceContext.getDepth: integer;
var
device: QPaintDeviceH;
begin
device := QPainter_device(Widget);
Result := QPaintDevice_depth(Device);
Result := QPaintDevice_depth(QPainter_device(Widget));
end;
function TQtDeviceContext.getDeviceSize: TPoint;