summaryrefslogtreecommitdiff
authorerik <erik>2007-07-09 21:58:46 (UTC)
committer erik <erik>2007-07-09 21:58:46 (UTC)
commit1ec355e1cc016edd2e322ff7d57469feaa46474b (patch) (unidiff)
tree1d3010a288c034db8ada2e5228339ce24637352e
parent485270bfabbd956946a6116af012f93e011fa718 (diff)
downloadopie-1ec355e1cc016edd2e322ff7d57469feaa46474b.zip
opie-1ec355e1cc016edd2e322ff7d57469feaa46474b.tar.gz
opie-1ec355e1cc016edd2e322ff7d57469feaa46474b.tar.bz2
Recover unused pixels for launcher tabs by orienting things at the
zero point and not at 1.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/startmenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/launcher/startmenu.cpp b/core/launcher/startmenu.cpp
index 24a9d7e..d03af89 100644
--- a/core/launcher/startmenu.cpp
+++ b/core/launcher/startmenu.cpp
@@ -266,17 +266,17 @@ bool StartMenu::loadMenu( QPopupMenu *menu )
266 266
267void StartMenu::launch() 267void StartMenu::launch()
268{ 268{
269 int y = mapToGlobal( QPoint() ).y() - launchMenu->sizeHint().height(); 269 int y = mapToGlobal( QPoint() ).y() - launchMenu->sizeHint().height();
270 270
271 if ( launchMenu->isVisible() ) 271 if ( launchMenu->isVisible() )
272 launchMenu->hide(); 272 launchMenu->hide();
273 else 273 else
274 launchMenu->popup( QPoint( 1, y ) ); 274 launchMenu->popup( QPoint( 0, y ) );
275} 275}
276 276
277 277
278 278
279 279
280static int compareAppletPositions(const void *b, const void *a) 280static int compareAppletPositions(const void *b, const void *a)
281{ 281{
282 const MenuApplet* aa = *(const MenuApplet**)a; 282 const MenuApplet* aa = *(const MenuApplet**)a;