From 82f086d29f36ca631d26f8a4a70fd1e809c58364 Mon Sep 17 00:00:00 2001 From: harlekin Date: Thu, 30 May 2002 20:31:18 +0000 Subject: applyed patch from Michael Lauer , 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 --- (limited to 'library') diff --git a/library/qpemenubar.cpp b/library/qpemenubar.cpp index 39f8fd6..bb3ad8d 100644 --- a/library/qpemenubar.cpp +++ b/library/qpemenubar.cpp @@ -306,3 +306,19 @@ void QPEMenuBar::keyPressEvent( QKeyEvent *e ) QMenuBar::keyPressEvent( e ); } + +void QPEMenuBar::activateItem( int index ) +{ + activateItemAt( index ); +} + +void QPEMenuBar::goodbye() +{ + activateItemAt(-1); + for ( unsigned int i = 0; i < count(); i++ ) { + QMenuItem *mi = findItem( idAt(i) ); + if ( mi->popup() ) { + mi->popup()->hide(); + } + } +} diff --git a/library/qpemenubar.h b/library/qpemenubar.h index 736b12b..5bfbe83 100644 --- a/library/qpemenubar.h +++ b/library/qpemenubar.h @@ -65,6 +65,8 @@ public: protected: virtual void keyPressEvent( QKeyEvent *e ); + void activateItem( int index ); + void goodbye(); }; #endif -- cgit v0.9.0.2