Rubber band in play mode disabled

preferencesAboutTextFull
Ilia Ryabokon 12 years ago
parent a55b01c962
commit 19d31ccc55
  1. 4
      src/board/UBBoardView.cpp
  2. 1
      src/board/UBBoardView.h

@ -75,6 +75,7 @@ UBBoardView::UBBoardView (UBBoardController* pController, QWidget* pParent, bool
, mIsDragInProgress(false)
, mMultipleSelectionIsEnabled(false)
, isControl(pIsControl)
, mRubberBandInPlayMode(false) //enables rubberband with play tool
{
init ();
@ -1020,6 +1021,8 @@ UBBoardView::mouseMoveEvent (QMouseEvent *event)
return;
}
if (currentTool != UBStylusTool::Play || mRubberBandInPlayMode) {
if (!movingItem && (mMouseButtonIsPressed || mTabletStylusIsPressed) && mUBRubberBand && mUBRubberBand->isVisible()) {
QRect bandRect(mMouseDownPos, event->pos());
@ -1054,6 +1057,7 @@ UBBoardView::mouseMoveEvent (QMouseEvent *event)
}
}
}
}
handleItemMouseMove(event);
}

@ -154,6 +154,7 @@ class UBBoardView : public QGraphicsView
bool mIsDragInProgress;
bool mMultipleSelectionIsEnabled;
bool isControl;
bool mRubberBandInPlayMode;
static bool hasSelectedParents(QGraphicsItem * item);

Loading…
Cancel
Save