Skip to content
Snippets Groups Projects
Commit f7d63b83 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

ProjectDocument: make 'sampleModel()' const

parent 92d04e0a
No related branches found
No related tags found
1 merge request!1355GUI: remove ApplicationModels class
...@@ -122,9 +122,9 @@ InstrumentModel* ProjectDocument::instrumentModel() const ...@@ -122,9 +122,9 @@ InstrumentModel* ProjectDocument::instrumentModel() const
return const_cast<InstrumentModel*>(&m_instrumentModel); return const_cast<InstrumentModel*>(&m_instrumentModel);
} }
SampleModel* ProjectDocument::sampleModel() SampleModel* ProjectDocument::sampleModel() const
{ {
return &m_sampleModel; return const_cast<SampleModel*>(&m_sampleModel);
} }
RealModel* ProjectDocument::realModel() const RealModel* ProjectDocument::realModel() const
......
...@@ -73,7 +73,7 @@ public: ...@@ -73,7 +73,7 @@ public:
void setProjectFullPath(const QString& fullPath); void setProjectFullPath(const QString& fullPath);
InstrumentModel* instrumentModel() const; InstrumentModel* instrumentModel() const;
SampleModel* sampleModel(); SampleModel* sampleModel() const;
RealModel* realModel() const; RealModel* realModel() const;
JobModel* jobModel() const; JobModel* jobModel() const;
SimulationOptionsItem* simulationOptionsItem(); SimulationOptionsItem* simulationOptionsItem();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment