From 18959b552afb61a1742b543fa90c2082a0676638 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 8 Jul 2009 00:37:40 +0000 Subject: [PATCH] in RTL, the geometries are reversed; compare them with that taken into consideration BUG:187406 svn path=/trunk/KDE/kdelibs/; revision=992935 --- containment.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/containment.cpp b/containment.cpp index b51b20a57..be3905139 100644 --- a/containment.cpp +++ b/containment.cpp @@ -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(); }