! \internal Assigns all layers their index (QCPLayer::mIndex) in the mLayers list. This method is thus called after every operation that changes the layer indices, like layer removal, layer creation, layer moving. */
| 15541 | moving. |
| 15542 | */ |
| 15543 | void QCustomPlot::updateLayerIndices() const |
| 15544 | { |
| 15545 | for (int i=0; i<mLayers.size(); ++i) |
| 15546 | mLayers.at(i)->mIndex = i; |
| 15547 | } |
| 15548 | |
| 15549 | /*! \internal |
| 15550 |