//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- bool RiuGridCrossQwtPlot::curveText(const QwtPlotCurve* curve, QString* curveTitle, QString* xParamName, QString* yParamName) const { CVF_ASSERT(curveTitle && xParamName && yParamName); auto riuCurve = dynamic_cast<const RiuRimQwtPlotCurve*>(curve); if (riuCurve) { auto crossPlotCurve = dynamic_cast<const RimGridCrossPlotCurve*>(riuCurve->ownerRimCurve()); if (crossPlotCurve) { *curveTitle = crossPlotCurve->curveName(); RimGridCrossPlotDataSet* dataSet = nullptr; crossPlotCurve->firstAncestorOrThisOfType(dataSet); if (dataSet) { *xParamName = dataSet->xAxisName(); *yParamName = dataSet->yAxisName(); return true; } } } return false; }
void RemoveErrorsDialog::remove() { emit curveName(ui->nameLabel->currentText()); }