aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scale.h2
-rw-r--r--scatterplot.cpp16
2 files changed, 9 insertions, 9 deletions
diff --git a/scale.h b/scale.h
index bfe18ae..ee0bde8 100644
--- a/scale.h
+++ b/scale.h
@@ -36,7 +36,7 @@ public:
valuesUpdated();
}
- void reverse()
+ void inverse()
{
std::swap(m_rangeMin, m_domainMin);
std::swap(m_rangeMax, m_domainMax);
diff --git a/scatterplot.cpp b/scatterplot.cpp
index 3db80c2..eef4893 100644
--- a/scatterplot.cpp
+++ b/scatterplot.cpp
@@ -344,16 +344,16 @@ bool Scatterplot::updateSelection(bool mergeSelection)
selection.unite(m_selectedGlyphs);
}
- m_sx.reverse();
- m_sy.reverse();
+ m_sx.inverse();
+ m_sy.inverse();
float originX = m_sx(m_dragOriginPos.x());
float originY = m_sy(m_dragOriginPos.y());
float currentX = m_sx(m_dragCurrentPos.x());
float currentY = m_sy(m_dragCurrentPos.y());
- m_sy.reverse();
- m_sx.reverse();
+ m_sy.inverse();
+ m_sx.inverse();
QRectF selectionRect(QPointF(originX, originY), QPointF(currentX, currentY));
@@ -379,12 +379,12 @@ void Scatterplot::setSelection(const QSet<int> &selection)
void Scatterplot::applyManipulation()
{
- m_sx.reverse();
- m_sy.reverse();
+ m_sx.inverse();
+ m_sy.inverse();
LinearScale rx = m_sx;
LinearScale ry = m_sy;
- m_sy.reverse();
- m_sx.reverse();
+ m_sy.inverse();
+ m_sx.inverse();
float tx = m_dragCurrentPos.x() - m_dragOriginPos.x();
float ty = m_dragCurrentPos.y() - m_dragOriginPos.y();