mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 14:29:31 +02:00
Qt: fixed determination of string content (RightToLeft vs. LeftToRight). issue #24340
git-svn-id: trunk@40956 -
This commit is contained in:
parent
76ec5ddbc4
commit
e70b5f66bb
@ -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 );
|
||||
|
@ -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: ');
|
||||
|
Loading…
Reference in New Issue
Block a user