void NotationSelector::handleMouseTripleClick(const NotationMouseEvent *e) { NOTATION_DEBUG << "NotationSelector::handleMouseTripleClick" << endl; if (!m_justSelectedBar) return; m_justSelectedBar = false; NotationStaff *staff = e->staff; if (!staff) return; m_selectedStaff = staff; if (e->element && e->exact) { // should be safe, as we've already set m_justSelectedBar false handleLeftButtonPress(e); return; } else { m_selectionRect->setRect(staff->getX(), staff->getY(), staff->getTotalWidth() - 1, staff->getTotalHeight() - 1); m_selectionRect->show(); m_updateRect = false; } m_wholeStaffSelectionComplete = true; return; }
void MatrixSelector::handleMouseTripleClick(const MatrixMouseEvent *e) { if (!m_justSelectedBar) return; m_justSelectedBar = false; MatrixViewSegment *vs = e->viewSegment; if (!vs) return; if (m_clickedElement) { // should be safe, as we've already set m_justSelectedBar false handleLeftButtonPress(e); return; /*!!! see note above } else { m_selectionRect->setX(staff->getX()); m_selectionRect->setY(staff->getY()); m_selectionRect->setSize(int(staff->getTotalWidth()) - 1, staff->getTotalHeight() - 1); m_selectionRect->show(); m_updateRect = false; */ } }