SVN_SILENT: don't pass click also on action icons when the mouse was moved
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=761954
This commit is contained in:
parent
67844a4190
commit
9cc8eabf9b
@ -1009,16 +1009,15 @@ void Icon::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
|||||||
|
|
||||||
d->states &= ~Private::PressedState;
|
d->states &= ~Private::PressedState;
|
||||||
|
|
||||||
bool handled = false;
|
//don't pass click when the mouse was moved
|
||||||
foreach (IconAction *action, d->cornerActions) {
|
bool handled = d->clickStartPos != scenePos();
|
||||||
if (action->event(event->type(), event->pos())) {
|
|
||||||
handled = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!handled) {
|
if (!handled) {
|
||||||
handled = d->clickStartPos != scenePos();
|
foreach (IconAction *action, d->cornerActions) {
|
||||||
|
if (action->event(event->type(), event->pos())) {
|
||||||
|
handled = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!handled) {
|
if (!handled) {
|
||||||
|
Loading…
Reference in New Issue
Block a user