in RTL, the geometries are reversed; compare them with that taken into consideration

BUG:187406

svn path=/trunk/KDE/kdelibs/; revision=992935
This commit is contained in:
Aaron J. Seigo 2009-07-08 00:37:40 +00:00
parent 3b02b725af
commit 18959b552a

View File

@ -271,6 +271,10 @@ bool appletConfigLessThan(const KConfigGroup &c1, const KConfigGroup &c2)
QPointF p2 = c2.readEntry("geometry", QRectF()).topLeft();
if (!qFuzzyCompare(p1.x(), p2.x())) {
if (QApplication::layoutDirection() == Qt::RightToLeft) {
return p1.x() > p2.x();
}
return p1.x() < p2.x();
}