[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_2_BRANCH: kdelibs/kdeui
From: Stephan Binner <binner () kde ! org>
Date: 2004-06-05 20:45:16
Message-ID: 20040605204516.37C7674A () office ! kde ! org
[Download RAW message or body]
CVS commit by binner:
Fix for empty tabbar space detection when tab is under left corner widget
M +5 -3 ktabwidget.cpp 1.27.2.1
--- kdelibs/kdeui/ktabwidget.cpp #1.27:1.27.2.1
@@ -168,10 +168,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() ) );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic