Performance updates (#9082)

* Avoid creation of curve legend widgets during construction of a multi plot
* Make sure default z-value is correct to avoid expensive Qwt updates
* Avoid duplicate plot updates
* Do not create internal Qwt legend by default
* RFT import: Avoid expensive method throwing exception if no data is found
This commit is contained in:
Magne Sjaastad
2022-06-24 16:16:46 +02:00
committed by GitHub
parent 5078f4072f
commit b706192ea3
16 changed files with 133 additions and 69 deletions

View File

@@ -76,7 +76,7 @@ QWidget* RimPlot::createViewWidget( QWidget* parent /*= nullptr */ )
RiuPlotWidget* plotWidget = doCreatePlotViewWidget( parent );
updateWindowVisibility();
plotWidget->scheduleReplot();
if ( showWindow() ) plotWidget->scheduleReplot();
return plotWidget;
}