author | harlekin <harlekin> | 2002-06-23 16:20:55 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-23 16:20:55 (UTC) |
commit | 3165f1b279a7a3a863decf06013c6275466092e5 (patch) (side-by-side diff) | |
tree | 3b355c088ff54eabeedcdeb783b0c7a479455699 | |
parent | 5cf97227889d00e366782d466eef5eafe1d73e5c (diff) | |
download | opie-3165f1b279a7a3a863decf06013c6275466092e5.zip opie-3165f1b279a7a3a863decf06013c6275466092e5.tar.gz opie-3165f1b279a7a3a863decf06013c6275466092e5.tar.bz2 |
translation in startmenu
-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 15707b4..5bac874 100644 --- a/core/launcher/startmenu.cpp +++ b/core/launcher/startmenu.cpp @@ -88,65 +88,65 @@ void StartMenu::loadOptions() } void StartMenu::createMenu() { if ( useWidePopupMenu ) launchMenu = new PopupWithLaunchSideThing( this, &popupMenuSidePixmap ); else launchMenu = new StartPopupMenu( this ); loadMenu( apps, launchMenu ); } void StartMenu::itemSelected( int id ) { const AppLnk *app = apps->find( id ); if ( app ) app->execute(); } bool StartMenu::loadMenu( AppLnkSet *folder, QPopupMenu *menu ) { bool result = FALSE; QStringList typs = folder->types(); QDict<QPopupMenu> typpop; for (QStringList::Iterator tit=typs.begin(); tit!=typs.end(); ++tit) { if ( !(*tit).isEmpty() ) { QPopupMenu *new_menu = new StartPopupMenu( menu ); typpop.insert(*tit, new_menu); connect( new_menu, SIGNAL(activated(int)), SLOT(itemSelected(int)) ); - menu->insertItem( folder->typePixmap(*tit), *tit, new_menu ); + menu->insertItem( folder->typePixmap(*tit), folder->typeName(*tit), new_menu ); } } QListIterator<AppLnk> it( folder->children() ); for ( ; it.current(); ++it ) { AppLnk *app = it.current(); if ( app->type() == "Separator" ) { menu->insertSeparator(); } else { QString t = app->type(); QPopupMenu* pmenu = typpop.find(t); if ( !pmenu ) pmenu = menu; pmenu->insertItem( app->pixmap(), app->name(), app->id() ); result=TRUE; } } if ( result ) connect( menu, SIGNAL(activated(int)), SLOT(itemSelected(int)) ); return result; } void StartMenu::launch() { int y = mapToGlobal( QPoint() ).y() - launchMenu->sizeHint().height(); if ( launchMenu->isVisible() ) launchMenu->hide(); else |