[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/containments/panel
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2009-07-09 0:04:32
Message-ID: 1247097872.026485.3115.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 993594 by aseigo:

swap the comparisons in --reverse
CCBUG:187406


 M  +7 -1      panel.cpp  


--- trunk/KDE/kdebase/workspace/plasma/containments/panel/panel.cpp #993593:993594
@@ -309,7 +309,13 @@
             QRectF siblingGeometry = lay->itemAt(i)->geometry();
             if (f == Plasma::Horizontal) {
                 qreal middle = (siblingGeometry.left() + siblingGeometry.right()) / 2.0;
-                if (pos.x() < middle) {
+                if (QApplication::layoutDirection() == Qt::RightToLeft) {
+                    if (pos.x() > middle) {
+                        insertIndex = i;
+                    } else if (pos.x() >= siblingGeometry.left()) {
+                        insertIndex = i + 1;
+                    }
+                } else if (pos.x() < middle) {
                     insertIndex = i;
                     break;
                 } else if (pos.x() <= siblingGeometry.right()) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic