summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-09-22 23:21:25 (UTC)
committer llornkcor <llornkcor>2002-09-22 23:21:25 (UTC)
commit4f142e98ee63e88fa0df61161b93228ee719d551 (patch) (unidiff)
treed311813aa272ecd2a4f340a124d4e610f8601995
parent452a124385fbc8162e03ee6cc9020ebeb2133a7f (diff)
downloadopie-4f142e98ee63e88fa0df61161b93228ee719d551.zip
opie-4f142e98ee63e88fa0df61161b93228ee719d551.tar.gz
opie-4f142e98ee63e88fa0df61161b93228ee719d551.tar.bz2
fix typo in loadOptions()
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/startmenu.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/core/launcher/startmenu.cpp b/core/launcher/startmenu.cpp
index 5506c55..b008a30 100644
--- a/core/launcher/startmenu.cpp
+++ b/core/launcher/startmenu.cpp
@@ -83,3 +83,3 @@ void StartMenu::loadOptions()
83 useWidePopupMenu = FALSE; 83 useWidePopupMenu = FALSE;
84 popupMenuSidePixmap = "lauchner/sidebar"; 84 popupMenuSidePixmap = "launcher/sidebar";
85 startButtonIsFlat = TRUE; 85 startButtonIsFlat = TRUE;
@@ -93,3 +93,3 @@ void StartMenu::createMenu()
93 if ( useWidePopupMenu ) 93 if ( useWidePopupMenu )
94 launchMenu = new PopupWithLaunchSideThing( this, &popupMenuSidePixmap ); 94 launchMenu = new PopupWithLaunchSideThing( this, &popupMenuSidePixmap );
95 else 95 else
@@ -105,3 +105,3 @@ void StartMenu::itemSelected( int id )
105 if ( app ) 105 if ( app )
106 app->execute(); 106 app->execute();
107} 107}
@@ -115,8 +115,8 @@ bool StartMenu::loadMenu( AppLnkSet *folder, QPopupMenu *menu )
115 for (QStringList::Iterator tit=typs.begin(); tit!=typs.end(); ++tit) { 115 for (QStringList::Iterator tit=typs.begin(); tit!=typs.end(); ++tit) {
116 if ( !(*tit).isEmpty() ) { 116 if ( !(*tit).isEmpty() ) {
117 QPopupMenu *new_menu = new StartPopupMenu( menu ); 117 QPopupMenu *new_menu = new StartPopupMenu( menu );
118 typpop.insert(*tit, new_menu); 118 typpop.insert(*tit, new_menu);
119 connect( new_menu, SIGNAL(activated(int)), SLOT(itemSelected(int)) ); 119 connect( new_menu, SIGNAL(activated(int)), SLOT(itemSelected(int)) );
120 menu->insertItem( folder->typePixmap(*tit), folder->typeName(*tit), new_menu ); 120 menu->insertItem( folder->typePixmap(*tit), folder->typeName(*tit), new_menu );
121 } 121 }
122 } 122 }
@@ -125,13 +125,13 @@ bool StartMenu::loadMenu( AppLnkSet *folder, QPopupMenu *menu )
125 for ( ; it.current(); ++it ) { 125 for ( ; it.current(); ++it ) {
126 AppLnk *app = it.current(); 126 AppLnk *app = it.current();
127 if ( app->type() == "Separator" ) { 127 if ( app->type() == "Separator" ) {
128 menu->insertSeparator(); 128 menu->insertSeparator();
129 } else { 129 } else {
130 QString t = app->type(); 130 QString t = app->type();
131 QPopupMenu* pmenu = typpop.find(t); 131 QPopupMenu* pmenu = typpop.find(t);
132 if ( !pmenu ) 132 if ( !pmenu )
133 pmenu = menu; 133 pmenu = menu;
134 pmenu->insertItem( app->pixmap(), app->name(), app->id() ); 134 pmenu->insertItem( app->pixmap(), app->name(), app->id() );
135 result=TRUE; 135 result=TRUE;
136 } 136 }
137 } 137 }
@@ -139,3 +139,3 @@ bool StartMenu::loadMenu( AppLnkSet *folder, QPopupMenu *menu )
139 if ( result ) 139 if ( result )
140 connect( menu, SIGNAL(activated(int)), SLOT(itemSelected(int)) ); 140 connect( menu, SIGNAL(activated(int)), SLOT(itemSelected(int)) );
141 141
@@ -164,7 +164,7 @@ void StartPopupMenu::keyPressEvent( QKeyEvent *e )
164 if ( e->key() == Key_F33 || e->key() == Key_Space ) { 164 if ( e->key() == Key_F33 || e->key() == Key_Space ) {
165 // "OK" button, little hacky 165 // "OK" button, little hacky
166 QKeyEvent ke(QEvent::KeyPress, Key_Enter, 13, 0); 166 QKeyEvent ke(QEvent::KeyPress, Key_Enter, 13, 0);
167 QPopupMenu::keyPressEvent( &ke ); 167 QPopupMenu::keyPressEvent( &ke );
168 } else { 168 } else {
169 QPopupMenu::keyPressEvent( e ); 169 QPopupMenu::keyPressEvent( e );
170 } 170 }