RTL fixes

This commit is contained in:
craig.p.drummond
2014-06-20 17:58:28 +00:00
committed by craig.p.drummond
parent 231a4f1f34
commit 62550239b5
18 changed files with 44 additions and 38 deletions

View File

@@ -102,7 +102,7 @@ public:
}
QFontMetrics fm(f);
if (fm.width(txt)>rect().width()) {
txt=fm.elidedText(txt, Qt::RightToLeft==layoutDirection() ? Qt::ElideLeft : Qt::ElideRight, rect().width());
txt=fm.elidedText(txt, isRightToLeft() ? Qt::ElideLeft : Qt::ElideRight, rect().width());
}
painter.setFont(f);