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

CCBUG:187406

svn path=/branches/KDE/4.3/kdelibs/; revision=992936
This commit is contained in:
Aaron J. Seigo 2009-07-08 00:38:38 +00:00
parent a90688399e
commit 17c459f9e1

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();
}