Prevent closing of tab when tab closeButton mouseReleaseEvent occurs outside of the button rect.
svn path=/trunk/KDE/kdebase/workspace/; revision=1072363
This commit is contained in:
parent
b90acadcc9
commit
e2bd296cf7
1 changed files with 2 additions and 1 deletions
|
@ -1251,7 +1251,8 @@ namespace Oxygen
|
|||
if( widget() == object ) state = mouseReleaseEvent( static_cast< QMouseEvent* >( event ) );
|
||||
else if( OxygenButton *btn = qobject_cast< OxygenButton* >( object ) )
|
||||
{
|
||||
if( static_cast< QMouseEvent* >( event )->button() == Qt::LeftButton )
|
||||
QMouseEvent* mouseEvent( static_cast< QMouseEvent* >( event ) );
|
||||
if( mouseEvent->button() == Qt::LeftButton && btn->rect().contains( mouseEvent->pos() ) )
|
||||
{ state = closeItem( btn ); }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue