[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/suse_kickoff_qstyle/kicker/kicker/ui
From: Luboš Luňák <l.lunak () kde ! org>
Date: 2007-09-24 14:30:29
Message-ID: 1190644229.284896.24102.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 716322 by lunakl:
Properly decide about orientation with xinerama (bnc:254215).
M +3 -1 k_new_mnu.cpp
--- branches/work/suse_kickoff_qstyle/kicker/kicker/ui/k_new_mnu.cpp #716321:716322
@@ -1640,7 +1640,9 @@
PanelPopupButton *kButton = MenuManager::the()->findKButtonFor( this );
if (kButton)
{
- setOrientation((kButton->center().y()<QApplication::desktop()->height()/2)
+ QPoint center = kButton->center();
+ QRect screen = QApplication::desktop()->screenGeometry( center );
+ setOrientation((center.y()-screen.y()<screen.height()/2)
? TopDown : BottomUp);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic