always store dragpoint in mousePressEvent, disregarding the button;
reset mouseButton_ in mouseMoveEvent only if action is actually taken. CCBUG 221997 svn path=/trunk/KDE/kdebase/workspace/; revision=1075951
This commit is contained in:
parent
fb8fc3001b
commit
352a2de89a
1 changed files with 3 additions and 3 deletions
|
@ -1434,13 +1434,13 @@ namespace Oxygen
|
|||
|
||||
QPoint point = event->pos();
|
||||
if( itemClicked( point ) < 0 ) return false;
|
||||
dragPoint_ = point;
|
||||
|
||||
mouseButton_ = event->button();
|
||||
bool accepted( false );
|
||||
if( buttonToWindowOperation( mouseButton_ ) == ClientGroupDragOp )
|
||||
{
|
||||
|
||||
dragPoint_ = point;
|
||||
accepted = true;
|
||||
|
||||
} else if( buttonToWindowOperation( mouseButton_ ) == OperationsOp ) {
|
||||
|
@ -1555,12 +1555,12 @@ namespace Oxygen
|
|||
);
|
||||
}
|
||||
|
||||
// reset button
|
||||
mouseButton_ = Qt::NoButton;
|
||||
accepted = true;
|
||||
|
||||
}
|
||||
|
||||
// reset button
|
||||
mouseButton_ = Qt::NoButton;
|
||||
return accepted;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue