summaryrefslogtreecommitdiff
path: root/library/qpemenubar.cpp
Side-by-side diff
Diffstat (limited to 'library/qpemenubar.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpemenubar.cpp16
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
@@ -307,2 +307,18 @@ void QPEMenuBar::keyPressEvent( QKeyEvent *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();
+ }
+ }
+}