! \overload Replaces the current data container with the provided \a data container. Since a QSharedPointer is used, multiple QCPGraphs may share the same data container safely. Modifying the data in the container will then affect all graphs that share the container. Sharing can be achieved by simply exchanging the data containers wrapped in shared pointers: \snippet documentation/
| 20140 | \see addData |
| 20141 | */ |
| 20142 | void QCPGraph::setData(QSharedPointer<QCPGraphDataContainer> data) |
| 20143 | { |
| 20144 | mDataContainer = data; |
| 20145 | } |
| 20146 | |
| 20147 | /*! \overload |
| 20148 |