spectator arrow drag item fix

This commit is contained in:
Max-Wilhelm Bruker 2010-09-24 13:14:29 +02:00
parent e92840c849
commit 2928eead39

View file

@ -297,6 +297,8 @@ void CardItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
if (event->buttons().testFlag(Qt::RightButton)) { if (event->buttons().testFlag(Qt::RightButton)) {
if ((event->screenPos() - event->buttonDownScreenPos(Qt::RightButton)).manhattanLength() < 2 * QApplication::startDragDistance()) if ((event->screenPos() - event->buttonDownScreenPos(Qt::RightButton)).manhattanLength() < 2 * QApplication::startDragDistance())
return; return;
if (static_cast<TabGame *>(owner->parent())->getSpectator())
return;
QColor arrowColor = Qt::red; QColor arrowColor = Qt::red;
if (event->modifiers().testFlag(Qt::ControlModifier)) if (event->modifiers().testFlag(Qt::ControlModifier))