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

Stephan Binner binner at kde.org
Thu Jun 10 09:19:21 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 binner kde org  2004-06-10 11:19 -------
CVS commit by binner: 

Don't consider corner widgets as empty tabbar space (don't you expect it too?)

Kurt, there are some small gaps between the full tabbar and the corner widgets
which allow dnd and context menu but in general the application has to imple-
ment the full wanted behavior for the corner widgets it sets now itself.
CCMAIL: 82908 bugs kde org


  M +7 -2      ktabwidget.cpp   1.33


--- kdelibs/kdeui/ktabwidget.cpp  #1.32:1.33
 @ -221,8 +221,13  @ bool KTabWidget::isEmptyTabbarSpace( con
         // QTabWidget::cornerWidget isn't const even it doesn't write any data ;(
         KTabWidget *that = const_cast<KTabWidget*>(this);
+        QWidget *rightcorner = that->cornerWidget( TopRight );
+        if ( rightcorner ) {
+            if ( point.x()>=width()-rightcorner->width() )
+                return false;
+        }
         QWidget *leftcorner = that->cornerWidget( TopLeft );
         if ( leftcorner ) {
             if ( point.x()<=leftcorner->width() )
-                return true;
+                return false;
             point.setX( point.x()-size.height() );
         }



More information about the konsole-devel mailing list