Index: sources/gui/guiglobals.cpp =================================================================== diff -u -r44a85c96ab55e424866ec4cca0270aa218355f82 -rd2035a8728794afeefaa244bf8d1597926d945f5 --- sources/gui/guiglobals.cpp (.../guiglobals.cpp) (revision 44a85c96ab55e424866ec4cca0270aa218355f82) +++ sources/gui/guiglobals.cpp (.../guiglobals.cpp) (revision d2035a8728794afeefaa244bf8d1597926d945f5) @@ -22,7 +22,7 @@ #include "guiview.h" // Project -#include "mmodel.h" +#include "MModel.h" #include "vview.h" #include "valarmstatus.h" @@ -35,9 +35,17 @@ #include "vtreatmentpressureocclusion.h" #include "vtreatmenttime.h" #include "vtreatmentranges.h" +#include "VHDOperationModeData.h" -#include "vloadcellreadings.h" -#include "vtemperaturesensors.h" +#include "VDGDrainPumpData.h" +#include "VDGHeatersData.h" +#include "VDGLoadCellReadingsData.h" +#include "VDGOperationModeData.h" +#include "VDGPressuresData.h" +#include "VDGROPumpData.h" +#include "VDGReservoirData.h" +#include "VDGTemperaturesData.h" +#include "VDGValvesStatesData.h" #include "vtreatmentadjustmentduration.h" #include "vtreatmentadjustmentflows.h" @@ -61,6 +69,9 @@ qRegisterMetaType ("GuiRequestReasons"); + // Note that this Models are not used in the qml + // but Qt needs them to be registered to be able to use them in between threads queue + // by their metadata information. REGISTER_MODEL_METATYPES } @@ -95,7 +106,7 @@ } else if (vStatus == QQuickView::Error || vStatus == QQuickView::Null) { for (const auto &error : _viewer->errors()) { - LOG_ERROR(QObject::tr("Application Terminated: %1").arg(error.toString())); + LOG_DEBUG(QString("Application Terminated: %1").arg(error.toString())); } QCoreApplication::exit(-1); }