summaryrefslogtreecommitdiff
path: root/library/qpemenubar.cpp
authorsandman <sandman>2002-10-06 03:18:29 (UTC)
committer sandman <sandman>2002-10-06 03:18:29 (UTC)
commit2c16c8767fa5c16c0eeebc7008202a68a61a5308 (patch) (side-by-side diff)
tree427028b8039b967bc5c14b2353f87ffb75cf9f01 /library/qpemenubar.cpp
parent502dba87e55f7f87ad9ea009a7e283c0c39f0c7f (diff)
downloadopie-2c16c8767fa5c16c0eeebc7008202a68a61a5308.zip
opie-2c16c8767fa5c16c0eeebc7008202a68a61a5308.tar.gz
opie-2c16c8767fa5c16c0eeebc7008202a68a61a5308.tar.bz2
key navigation didn't work in toolbars, which had separators (e.g. qpdf or
drawpad) - now this is accounted for and they are skipped
Diffstat (limited to 'library/qpemenubar.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpemenubar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/qpemenubar.cpp b/library/qpemenubar.cpp
index f0171ba..c658d10 100644
--- a/library/qpemenubar.cpp
+++ b/library/qpemenubar.cpp
@@ -110,25 +110,25 @@ void QPEMenuToolFocusManager::moveFocus( bool next )
it = list.begin();
while ( --n ) {
if ( next ) {
++it;
if ( it == list.end() )
it = list.begin();
} else {
if ( it == list.begin() )
it = list.end();
--it;
}
QWidget *w = (*it);
- if ( w && w->isEnabled() && w->isVisible() &&
+ if ( w && w->isEnabled() && w->isVisible() && !w->inherits("QToolBarSeparator") &&
w->topLevelWidget() == qApp->activeWindow() ) {
setFocus( w, next );
return;
}
}
}
void QPEMenuToolFocusManager::initialize()
{
if ( !me )
me = new QPEMenuToolFocusManager;
}