summaryrefslogtreecommitdiff
authorerik <erik>2007-07-09 21:58:46 (UTC)
committer erik <erik>2007-07-09 21:58:46 (UTC)
commit1ec355e1cc016edd2e322ff7d57469feaa46474b (patch) (side-by-side diff)
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
@@ -242,65 +242,65 @@ bool StartMenu::loadMenu( QPopupMenu *menu )
bool lot = cfg.readBoolEntry("LauncherOther", TRUE);
useWidePopupMenu = cfg.readBoolEntry( "LauncherSubPopup", TRUE );
bool sepfirst = !ltabs && !lot;
currentItem = 0;
launchMenu->clear();
appLnks.setAutoDelete( true );
tabNames.setAutoDelete( true );
appLnks.clear();
tabNames.clear();
appLnks.setAutoDelete( false );
tabNames.setAutoDelete( false );
QDir dir( MimeType::appsFolderName(), QString::null, QDir::Name );
createMenuEntries( menu, dir, ltabs, lot );
if ( !menu->count() ) sepfirst = TRUE;
launchMenu->setName( sepfirst ? "accessories" : "accessories_need_sep" ); // No tr
return currentItem;
}
void StartMenu::launch()
{
int y = mapToGlobal( QPoint() ).y() - launchMenu->sizeHint().height();
if ( launchMenu->isVisible() )
launchMenu->hide();
else
- launchMenu->popup( QPoint( 1, y ) );
+ launchMenu->popup( QPoint( 0, y ) );
}
static int compareAppletPositions(const void *b, const void *a)
{
const MenuApplet* aa = *(const MenuApplet**)a;
const MenuApplet* ab = *(const MenuApplet**)b;
int d = aa->iface->position() - ab->iface->position();
if ( d ) return d;
return QString::compare(aa->library->library(),ab->library->library());
}
void StartMenu::clearApplets()
{
if ( launchMenu )
launchMenu-> hide();
for ( QIntDictIterator<MenuApplet> it( menuApplets ); it.current(); ++it ) {
MenuApplet *applet = it.current();
if ( launchMenu ) {
launchMenu->removeItem( applet-> id );
delete applet->popup;
}
applet->iface->release();
applet->library->unload();
delete applet-> library;
}
menuApplets.clear();
}