| 257 | } |
| 258 | |
| 259 | void CartesianPlotTest::deleteCurveNoAutoscale() { |
| 260 | LOAD_PROJECT_HISTOGRAM_FIT_CURVE |
| 261 | const auto cs = plot->coordinateSystem(curve2->coordinateSystemIndex()); |
| 262 | plot->enableAutoScale(Dimension::Y, cs->index(Dimension::Y), false, false); |
| 263 | |
| 264 | CHECK_RANGE(plot, curve1, Dimension::X, -4., 4.); |
| 265 | CHECK_RANGE(plot, curve1, Dimension::Y, 0., 1.); |
| 266 | |
| 267 | // delete curve in plot |
| 268 | plot->removeChild(curve2); |
| 269 | |
| 270 | CHECK_RANGE(plot, curve1, Dimension::X, -4., 4.); |
| 271 | CHECK_RANGE(plot, curve1, Dimension::Y, 0., 1.); |
| 272 | |
| 273 | QCOMPARE(plot->autoScale(Dimension::Y, cs->index(Dimension::Y)), false); |
| 274 | } |
| 275 | |
| 276 | void CartesianPlotTest::invisibleCurveAutoscale() { |
| 277 | LOAD_PROJECT_HISTOGRAM_FIT_CURVE |
nothing calls this directly
no test coverage detected