author | harlekin <harlekin> | 2002-05-30 20:31:18 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-05-30 20:31:18 (UTC) |
commit | 82f086d29f36ca631d26f8a4a70fd1e809c58364 (patch) (unidiff) | |
tree | 197cd323a7cdb868c3aa839181fcb7dbb5cab252 /library/qpemenubar.cpp | |
parent | f4f00234985e5864229b3e95a3ac0d004c09b10d (diff) | |
download | opie-82f086d29f36ca631d26f8a4a70fd1e809c58364.zip opie-82f086d29f36ca631d26f8a4a70fd1e809c58364.tar.gz opie-82f086d29f36ca631d26f8a4a70fd1e809c58364.tar.bz2 |
applyed patch from Michael Lauer <mickey@tm.informatik.uni-frankfurt.de>, looks like the qtopia on zaurus has a modified qpemenubar, which prevented PyQt to work with opie right. Potentially closes bug #388 hh.org bugzilla
-rw-r--r-- | library/qpemenubar.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/library/qpemenubar.cpp b/library/qpemenubar.cpp index 39f8fd6..bb3ad8d 100644 --- a/library/qpemenubar.cpp +++ b/library/qpemenubar.cpp | |||
@@ -301,8 +301,24 @@ QPEMenuBar::~QPEMenuBar() | |||
301 | /*! | 301 | /*! |
302 | \internal | 302 | \internal |
303 | */ | 303 | */ |
304 | void QPEMenuBar::keyPressEvent( QKeyEvent *e ) | 304 | void QPEMenuBar::keyPressEvent( QKeyEvent *e ) |
305 | { | 305 | { |
306 | QMenuBar::keyPressEvent( e ); | 306 | QMenuBar::keyPressEvent( e ); |
307 | } | 307 | } |
308 | 308 | ||
309 | |||
310 | void QPEMenuBar::activateItem( int index ) | ||
311 | { | ||
312 | activateItemAt( index ); | ||
313 | } | ||
314 | |||
315 | void QPEMenuBar::goodbye() | ||
316 | { | ||
317 | activateItemAt(-1); | ||
318 | for ( unsigned int i = 0; i < count(); i++ ) { | ||
319 | QMenuItem *mi = findItem( idAt(i) ); | ||
320 | if ( mi->popup() ) { | ||
321 | mi->popup()->hide(); | ||
322 | } | ||
323 | } | ||
324 | } | ||