! Sets the target graph for filling the area between this graph and \a targetGraph with the current brush (\ref setBrush). When \a targetGraph is set to 0, a normal graph fill to the zero-value-line will be shown. To disable any filling, set the brush to Qt::NoBrush. \see setBrush */
| 20209 | \see setBrush |
| 20210 | */ |
| 20211 | void QCPGraph::setChannelFillGraph(QCPGraph *targetGraph) |
| 20212 | { |
| 20213 | // prevent setting channel target to this graph itself: |
| 20214 | if (targetGraph == this) |
| 20215 | { |
| 20216 | qDebug() << Q_FUNC_INFO << "targetGraph is this graph itself"; |
| 20217 | mChannelFillGraph = 0; |
| 20218 | return; |
| 20219 | } |
| 20220 | // prevent setting channel target to a graph not in the plot: |
| 20221 | if (targetGraph && targetGraph->mParentPlot != mParentPlot) |
| 20222 | { |
| 20223 | qDebug() << Q_FUNC_INFO << "targetGraph not in same plot"; |
| 20224 | mChannelFillGraph = 0; |
| 20225 | return; |
| 20226 | } |
| 20227 | |
| 20228 | mChannelFillGraph = targetGraph; |
| 20229 | } |
| 20230 | |
| 20231 | /*! |
| 20232 | Sets whether adaptive sampling shall be used when plotting this graph. QCustomPlot's adaptive |
nothing calls this directly
no outgoing calls
no test coverage detected