Skip to content
Snippets Groups Projects

Plot1|2DFrame are stateless, StackedDataFrame switches between widgets that have been created at start up

Merged Wuttke, Joachim requested to merge j.2 into main
3 files
+ 7
7
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -15,6 +15,7 @@
#include "GUI/View/Canvas/SpecularDataCanvas.h"
#include "Base/Util/Assert.h"
#include "GUI/Model/Data/Data1DItem.h"
#include "GUI/Model/Job/DataSource.h"
#include "GUI/Model/Project/ProjectDocument.h"
#include "GUI/View/Canvas/SavePlotAssistant.h"
#include "GUI/View/Canvas/SpecularPlotCanvas.h"
@@ -41,13 +42,13 @@ SpecularDataCanvas::SpecularDataCanvas()
Data1DItem* SpecularDataCanvas::dataItem()
{
return m_data_item; // DataFromData().realData1DItem();
return DataFromData().realData1DItem();
}
void SpecularDataCanvas::setDataItem(Data1DItem* item)
void SpecularDataCanvas::setDataItem()
{
m_data_item = item;
m_plot_canvas->setData1DItems({item});
if (dataItem())
m_plot_canvas->setData1DItems({dataItem()});
}
QSize SpecularDataCanvas::sizeHint() const
Loading