Qt: fixed determination of string content (RightToLeft vs. LeftToRight). issue #24340

git-svn-id: trunk@40956 -
This commit is contained in:
zeljko 2013-04-30 15:29:13 +00:00
parent 76ec5ddbc4
commit e70b5f66bb
2 changed files with 3 additions and 1 deletions

View File

@ -731,7 +731,7 @@ type
QtToolButtonIconOnly, QtToolButtonTextOnly, QtToolButtonTextBesideIcon, QtToolButtonTextUnderIcon );
QtLayoutDirection = ( // Qt::LayoutDirection (1)
QtLeftToRight, QtRightToLeft );
QtLeftToRight, QtRightToLeft, QtLayoutDirectionAuto );
QtCheckState = ( // Qt::CheckState (1)
QtUnchecked, QtPartiallyChecked, QtChecked );

View File

@ -95,6 +95,8 @@ begin
// if current handle has paintdata information,
// setup hdc with it
//DC.DebugClipRect('BeginPaint: Before');
if (QtVersionMajor = 4) and (QtVersionMinor > 6) then
QPainter_setLayoutDirection(DC.Widget, QtLayoutDirectionAuto);
if Widget.PaintData.ClipRegion <> nil then
begin
//Write('>>> Setting Paint ClipRegion: ');