Skip to content

Commit

Permalink
Fixing formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
blackears committed Jan 9, 2022
1 parent 0bc268c commit b8a7e93
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pianoroll/view/pianorollview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -932,11 +932,9 @@ void PianorollView::mouseMoveEvent(QMouseEvent* event)
QRect bounds = boundingRect(pi->note, true);
if (m_mouseDownPos.x() <= bounds.x() + m_dragNoteLengthMargin) {
m_dragStyle = DragStyle::EVENT_ONTIME;
}
else if (m_mouseDownPos.x() >= bounds.x() + bounds.width() - m_dragNoteLengthMargin) {
} else if (m_mouseDownPos.x() >= bounds.x() + bounds.width() - m_dragNoteLengthMargin) {
m_dragStyle = DragStyle::EVENT_LENGTH;
}
else {
} else {
m_dragStyle = DragStyle::EVENT_MOVE;
}
} else if (!pi && m_tool == PianorollTool::SELECT) {
Expand Down

0 comments on commit b8a7e93

Please sign in to comment.