diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-11-09 11:22:47 +0100 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-11-09 11:22:47 +0100 |
commit | b9ce5d83d9560e71f1550cecee4fcc0caa26054f (patch) | |
tree | 6893821456b86d541950985356bde350a890eaa8 | |
parent | 3fef4f63328fbdcabe0ab9d6cdb1eaf1c2899238 (diff) |
Scale::reverse() renamed to Scale::inverse().
-rw-r--r-- | scale.h | 2 | ||||
-rw-r--r-- | scatterplot.cpp | 16 |
2 files changed, 9 insertions, 9 deletions
@@ -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(); |