[Konsole-devel] [Bug 82908] Tab context menu doesn't popup

Kurt V.Hindenburg khindenburg at cherrynebula.net
Fri Jun 18 09:34:37 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=82908      




------- Additional Comments From khindenburg cherrynebula net  2004-06-18 11:34 -------
O.K. I see what you mean.  Before the context menu was a mis-feature.  corner widget == empty space.

Here's a quickie... it appears to work... I'll look at it again later when I have more time.


Index: konsole.cpp
===================================================================
RCS file: /home/kde/kdebase/konsole/konsole/konsole.cpp,v
retrieving revision 1.465
diff -u -p -r1.465 konsole.cpp
--- konsole.cpp 15 Jun 2004 15:19:02 -0000      1.465
+++ konsole.cpp 18 Jun 2004 09:33:31 -0000
 @ -941,6 +941,12  @ bool Konsole::eventFilter( QObject *o, Q
         return true;
       }
     }
+    else if (ev->type() == QEvent::ContextMenu)
+    {
+      QMouseEvent* mev = static_cast<QMouseEvent*>(ev);
+      slotTabbarContextMenu(mev->globalPos());
+      return true;
+    }
   }
   return KMainWindow::eventFilter(o, ev);
 }



More information about the konsole-devel mailing list