Merged revision(s) 52406-52407 #d8ed66ce6a-#d8ed66ce6a from trunk:

Qt: fixed TQtWidgetSet.AngleChord(). issue #30194
........
Qt: proper string conversion.
........

git-svn-id: branches/fixes_1_6@52458 -
This commit is contained in:
maxim 2016-06-08 22:17:37 +00:00
parent 070948cf18
commit 681dde5529
2 changed files with 2 additions and 2 deletions

View File

@ -1887,7 +1887,7 @@ var
WStr: WideString;
begin
QObject_objectName(QApplication_style, @WStr);
Result := UTF8ToUTF16(WStr);
Result := UTF16ToUTF8(WStr);
end;
//------------------------------------------------------------------------

View File

@ -57,7 +57,7 @@ begin
{$endif}
Result := IsValidDC(DC);
if Result then
QPainter_drawChord(TQtDeviceContext(DC).Widget, x1, y1, x2, y2, Angle1, Angle2);
QPainter_drawChord(TQtDeviceContext(DC).Widget, x1, y1, x2 - x1, y2 - y1, Angle1, Angle2);
end;
{------------------------------------------------------------------------------