Better defaults for Correlation Cross Plots and shorten legend entries

This commit is contained in:
Gaute Lindkvist authored and Magne Sjaastad committed 2020-09-22 08:32:54 +02:00
1 parent 9b9a6f2947
commit e292b8a297
8 files changed
+92 -26

No files matched your search

+7 -1
View File
@@ -91,7 +91,13 @@ public:
void onChildDeleted( caf::PdmChildArrayFieldHandle* childArray,
std::vector<caf::PdmObjectHandle*>& referringObjects ) override;
bool isSubPlot() const;
template <typename PlotWindowType = RimPlotWindow>
bool isSubPlot() const
{
PlotWindowType* parentPlotWindow = nullptr;
firstAncestorOfType( parentPlotWindow );
return parentPlotWindow != nullptr;
}
protected:
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;