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

Stephan Binner binner at kde.org
Sat Jun 5 20:42:39 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      
binner kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From binner kde org  2004-06-05 22:42 -------
CVS commit by binner: 

Bug 82908: Tab context menu doesn't popup
CCMAIL: 82908-done bugs kde org


  M +8 -6      ktabwidget.cpp   1.32


--- kdelibs/kdeui/ktabwidget.cpp  #1.31:1.32
 @ -219,10 +219,12  @ bool KTabWidget::isEmptyTabbarSpace( con
     QSize size( tabBar()->sizeHint() );
     if ( ( tabPosition()==Top && point.y()< size.height() ) || ( tabPosition()==Bottom && point.y()>(height()-size.height() ) ) ) {
-#if QT_VERSION >= 0x030200
         // QTabWidget::cornerWidget isn't const even it doesn't write any data ;(
         KTabWidget *that = const_cast<KTabWidget*>(this);
-        if ( that->cornerWidget( TopLeft ) )
+        QWidget *leftcorner = that->cornerWidget( TopLeft );
+        if ( leftcorner ) {
+            if ( point.x()<=leftcorner->width() )
+                return true;
             point.setX( point.x()-size.height() );
-#endif
+        }
         if ( tabPosition()==Bottom )
             point.setY( point.y()-( height()-size.height() ) );



More information about the konsole-devel mailing list