author | sandman <sandman> | 2002-10-06 03:18:29 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-06 03:18:29 (UTC) |
commit | 2c16c8767fa5c16c0eeebc7008202a68a61a5308 (patch) (unidiff) | |
tree | 427028b8039b967bc5c14b2353f87ffb75cf9f01 /library | |
parent | 502dba87e55f7f87ad9ea009a7e283c0c39f0c7f (diff) | |
download | opie-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
-rw-r--r-- | library/qpemenubar.cpp | 2 |
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 ) | |||
110 | it = list.begin(); | 110 | it = list.begin(); |
111 | while ( --n ) { | 111 | while ( --n ) { |
112 | if ( next ) { | 112 | if ( next ) { |
113 | ++it; | 113 | ++it; |
114 | if ( it == list.end() ) | 114 | if ( it == list.end() ) |
115 | it = list.begin(); | 115 | it = list.begin(); |
116 | } else { | 116 | } else { |
117 | if ( it == list.begin() ) | 117 | if ( it == list.begin() ) |
118 | it = list.end(); | 118 | it = list.end(); |
119 | --it; | 119 | --it; |
120 | } | 120 | } |
121 | QWidget *w = (*it); | 121 | QWidget *w = (*it); |
122 | if ( w && w->isEnabled() && w->isVisible() && | 122 | if ( w && w->isEnabled() && w->isVisible() && !w->inherits("QToolBarSeparator") && |
123 | w->topLevelWidget() == qApp->activeWindow() ) { | 123 | w->topLevelWidget() == qApp->activeWindow() ) { |
124 | setFocus( w, next ); | 124 | setFocus( w, next ); |
125 | return; | 125 | return; |
126 | } | 126 | } |
127 | } | 127 | } |
128 | } | 128 | } |
129 | 129 | ||
130 | void QPEMenuToolFocusManager::initialize() | 130 | void QPEMenuToolFocusManager::initialize() |
131 | { | 131 | { |
132 | if ( !me ) | 132 | if ( !me ) |
133 | me = new QPEMenuToolFocusManager; | 133 | me = new QPEMenuToolFocusManager; |
134 | } | 134 | } |