From 8bba5c06cca56771685e783a65a17599008596f1 2012-12-10 09:00:35 From: Marek Rosa Date: 2012-12-10 09:00:35 Subject: [PATCH] Documented mapToValue and mapToPostion methods in QChart --- diff --git a/src/qchart.cpp b/src/qchart.cpp index 9c1547b..4c206d7 100644 --- a/src/qchart.cpp +++ b/src/qchart.cpp @@ -581,11 +581,17 @@ void QChart::removeAxis(QAbstractAxis *axis) d_ptr->m_dataset->removeAxis(axis); } +/*! + Returns the value in the \a series domain that coresponds to the charts widget point defines by \a position. +*/ QPointF QChart::mapToValue(const QPointF &position, QAbstractSeries *series) { return d_ptr->m_dataset->mapToValue(position, series); } +/*! + Returns the position on the charts widget that coresponds to the \a value in the \a series domain. +*/ QPointF QChart::mapToPosition(const QPointF &value, QAbstractSeries *series) { return d_ptr->m_dataset->mapToPosition(value, series);