Skip to content
Snippets Groups Projects
Commit c226da51 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

code layout

parent ac3959a1
No related branches found
No related tags found
1 merge request!427Reduce include dependences in GUI; break cyclic dependence between View and Model
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <QXmlStreamWriter> #include <QXmlStreamWriter>
namespace { namespace {
const QString XML_ROOT_TAG = "BornAgainInstrumentLibrary"; const QString XML_ROOT_TAG = "BornAgainInstrumentLibrary";
const QString XML_VERSION_TAG = "Version"; const QString XML_VERSION_TAG = "Version";
...@@ -30,6 +31,7 @@ QString instrumentLibraryFilePath() ...@@ -30,6 +31,7 @@ QString instrumentLibraryFilePath()
} // namespace } // namespace
InstrumentLibrary::InstrumentLibrary() : m_modified(false) InstrumentLibrary::InstrumentLibrary() : m_modified(false)
{ {
QObject::connect(&m_model, &InstrumentModel::instrumentChanged, [&]() { m_modified = true; }); QObject::connect(&m_model, &InstrumentModel::instrumentChanged, [&]() { m_modified = true; });
......
...@@ -45,7 +45,6 @@ public: ...@@ -45,7 +45,6 @@ public:
void removeInstrument(InstrumentItem* instrument); void removeInstrument(InstrumentItem* instrument);
QString suggestInstrumentName(const QString& currentName) const; QString suggestInstrumentName(const QString& currentName) const;
QVector<InstrumentItem*> QVector<InstrumentItem*>
......
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