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:
Hugo Pereira Da Costa 2010-01-17 03:02:44 +00:00
parent fb8fc3001b
commit 352a2de89a

View file

@ -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;
}