From 17c459f9e1b0cec802fc0c96c17bdaaba3127b19 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 8 Jul 2009 00:38:38 +0000 Subject: [PATCH] in RTL, the geometries are reversed; compare them with that taken into consideration CCBUG:187406 svn path=/branches/KDE/4.3/kdelibs/; revision=992936 --- containment.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/containment.cpp b/containment.cpp index a9669de1e..3bb43be8c 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(); }