Lines Matching refs:m_currentPointIndex

66         if (i == m_currentPointIndex) {  in paintEvent()
79 if (i != 0 && (i == m_currentPointIndex || m_showAllHandles)) { in paintEvent()
82 if (i != max && (i == m_currentPointIndex || m_showAllHandles)) { in paintEvent()
86 if (i == m_currentPointIndex) { in paintEvent()
108 m_currentPointIndex = closestPointIndex; in mousePressEvent()
118 m_currentPointIndex = m_curve.addPoint(QPointF(x, y)); in mousePressEvent()
122 m_currentPointIndex = closestPointIndex; in mousePressEvent()
126 BPoint point = m_curve.getPoint(m_currentPointIndex); in mousePressEvent()
129 if (m_currentPointIndex > 0) { in mousePressEvent()
130 m_grabPPrevious = m_curve.getPoint(m_currentPointIndex - 1); in mousePressEvent()
132 if (m_currentPointIndex < m_curve.count() - 1) { in mousePressEvent()
133 m_grabPNext = m_curve.getPoint(m_currentPointIndex + 1); in mousePressEvent()
140 m_curve.setPoint(m_currentPointIndex, point); in mousePressEvent()
180 BPoint point = m_curve.getPoint(m_currentPointIndex); in mouseMoveEvent()
184 if (m_currentPointIndex == 0) { in mouseMoveEvent()
187 leftX = m_curve.getPoint(m_currentPointIndex - 1).p.x(); in mouseMoveEvent()
195 if (m_currentPointIndex == 0) { in mouseMoveEvent()
197 } else if (m_currentPointIndex == m_curve.count() - 1) { in mouseMoveEvent()
218 if (m_currentPointIndex == m_curve.count() - 1) { in mouseMoveEvent()
221 rightX = m_curve.getPoint(m_currentPointIndex + 1).p.x(); in mouseMoveEvent()
228 int index = m_currentPointIndex; in mouseMoveEvent()
229 m_currentPointIndex = m_curve.setPoint(m_currentPointIndex, point); in mouseMoveEvent()
234 if (index == m_currentPointIndex) { in mouseMoveEvent()
235 if (m_currentPointIndex > 0) { in mouseMoveEvent()
236 m_curve.setPoint(m_currentPointIndex - 1, m_grabPPrevious); in mouseMoveEvent()
238 if (m_currentPointIndex < m_curve.count() - 1) { in mouseMoveEvent()
239 m_curve.setPoint(m_currentPointIndex + 1, m_grabPNext); in mouseMoveEvent()
242 if (m_currentPointIndex < index) { in mouseMoveEvent()
245 if (m_currentPointIndex > 0) { in mouseMoveEvent()
246 m_grabPPrevious = m_curve.getPoint(m_currentPointIndex - 1); in mouseMoveEvent()
251 if (m_currentPointIndex < m_curve.count() - 1) { in mouseMoveEvent()
252 m_grabPNext = m_curve.getPoint(m_currentPointIndex + 1); in mouseMoveEvent()
268 if (m_currentPointIndex >= 0) { in mouseDoubleClickEvent()
269 BPoint p = m_curve.getPoint(m_currentPointIndex); in mouseDoubleClickEvent()
271 m_curve.setPoint(m_currentPointIndex, p); in mouseDoubleClickEvent()
283 …if (nearestIndex >= 0 && (nearestIndex == m_currentPointIndex || pointType == BPoint::PointType::P… in nearestPointInRange()