author | erik <erik> | 2007-07-09 21:58:46 (UTC) |
---|---|---|
committer | erik <erik> | 2007-07-09 21:58:46 (UTC) |
commit | 1ec355e1cc016edd2e322ff7d57469feaa46474b (patch) (unidiff) | |
tree | 1d3010a288c034db8ada2e5228339ce24637352e | |
parent | 485270bfabbd956946a6116af012f93e011fa718 (diff) | |
download | opie-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.
-rw-r--r-- | core/launcher/startmenu.cpp | 2 |
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 | |||
@@ -262,25 +262,25 @@ bool StartMenu::loadMenu( QPopupMenu *menu ) | |||
262 | 262 | ||
263 | return currentItem; | 263 | return currentItem; |
264 | } | 264 | } |
265 | 265 | ||
266 | 266 | ||
267 | void StartMenu::launch() | 267 | void 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 | ||
280 | static int compareAppletPositions(const void *b, const void *a) | 280 | static int compareAppletPositions(const void *b, const void *a) |
281 | { | 281 | { |
282 | const MenuApplet* aa = *(const MenuApplet**)a; | 282 | const MenuApplet* aa = *(const MenuApplet**)a; |
283 | const MenuApplet* ab = *(const MenuApplet**)b; | 283 | const MenuApplet* ab = *(const MenuApplet**)b; |
284 | int d = aa->iface->position() - ab->iface->position(); | 284 | int d = aa->iface->position() - ab->iface->position(); |
285 | if ( d ) return d; | 285 | if ( d ) return d; |
286 | return QString::compare(aa->library->library(),ab->library->library()); | 286 | return QString::compare(aa->library->library(),ab->library->library()); |