aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scatterplot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scatterplot.cpp b/scatterplot.cpp
index a121304..c43b625 100644
--- a/scatterplot.cpp
+++ b/scatterplot.cpp
@@ -223,7 +223,7 @@ void Scatterplot::mousePressEvent(QMouseEvent *event)
switch (m_currentInteractionState) {
case INTERACTION_NONE:
case INTERACTION_SELECTED:
- m_currentInteractionState = (event->button() == Qt::MiddleButton) ? INTERACTION_MOVING
+ m_currentInteractionState = (event->modifiers() == Qt::AltModifier) ? INTERACTION_MOVING
: INTERACTION_SELECTING;
m_dragOriginPos = event->localPos();
m_dragCurrentPos = m_dragOriginPos;
@@ -261,7 +261,7 @@ void Scatterplot::mouseReleaseEvent(QMouseEvent *event)
switch (m_currentInteractionState) {
case INTERACTION_SELECTING:
- mergeSelection = (event->button() == Qt::RightButton);
+ mergeSelection = (event->modifiers() == Qt::ControlModifier);
m_currentInteractionState = selectGlyphs(mergeSelection) ? INTERACTION_SELECTED
: INTERACTION_NONE;
update();