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

List:       kde-commits
Subject:    koffice/kspread
From:       Meni Livne <livne () kde ! org>
Date:       2005-04-13 10:02:32
Message-ID: 20050413100232.B4D49492 () office ! kde ! org
[Download RAW message or body]

CVS commit by livne: 

Fix popup location of "Selection List" menu in RTL sheets.


  M +11 -0     kspread_view.cc   1.835


--- koffice/kspread/kspread_view.cc  #1.834:1.835
@@ -5129,6 +5129,17 @@ void KSpreadView::slotListChoosePopupMen
   ty += h;
 
+  if ( d->activeSheet->layoutDirection()==KSpreadSheet::RightToLeft )
+  {
+    tx = canvasWidget()->width() - tx;
+  }
+
   QPoint p( (int)tx, (int)ty );
   QPoint p2 = d->canvas->mapToGlobal( p );
+
+  if ( d->activeSheet->layoutDirection()==KSpreadSheet::RightToLeft )
+  {
+    p2.setX( p2.x() - d->popupListChoose->sizeHint().width() + 1 );
+  }
+
   d->popupListChoose->popup( p2 );
   QObject::connect( d->popupListChoose, SIGNAL( activated( int ) ),


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

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