Delegate buttons takes mouse press and mouse release events immediately. Fix to Sankore-772.

preferencesAboutTextFull
Aleksei Kanash 12 years ago
parent 2a443e618d
commit b21e009108
  1. 3
      src/board/UBBoardView.cpp

@ -528,6 +528,8 @@ Here we determines cases when items should to get mouse press event at pressing
return true;
case DelegateButton::Type:
return true;
case UBGraphicsMediaItem::Type:
return false;
@ -1123,6 +1125,7 @@ UBBoardView::mouseReleaseEvent (QMouseEvent *event)
else
{
if (isUBItem(movingItem) &&
DelegateButton::Type != movingItem->type() &&
QGraphicsSvgItem::Type != movingItem->type() &&
UBGraphicsDelegateFrame::Type != movingItem->type() &&
UBToolWidget::Type != movingItem->type() &&

Loading…
Cancel
Save