Index: sources/gui/guiglobals.cpp =================================================================== diff -u -r4a6abe765f03feae8100ec660aa04aa218d4dfa3 -r595ed1fbe8066960afd4c8fea168208e81b173d9 --- sources/gui/guiglobals.cpp (.../guiglobals.cpp) (revision 4a6abe765f03feae8100ec660aa04aa218d4dfa3) +++ sources/gui/guiglobals.cpp (.../guiglobals.cpp) (revision 595ed1fbe8066960afd4c8fea168208e81b173d9) @@ -19,12 +19,11 @@ // Project #include "logger.h" #include "guiview.h" -// Project - View -#include "vtreatmentflows.h" -#include "vtreatmentultrafiltration.h" -#include "vtreatmenttime.h" -#include "valarmstatus.h" +// Project +#include "mmodel.h" +#include "vview.h" + namespace Gui { QQuickView *_viewer = nullptr; @@ -53,10 +52,7 @@ qmlRegisterType ("Gui.View" , 0, 1, "GuiView"); qmlRegisterUncreatableType ("Gui.Actions", 0, 1, "GuiActions", QStringLiteral("Used only for enumerations no need to have an object")); - qmlRegisterType ("Gui.VTreatmentFlows" , 0, 1, "VTreatmentFlows" ); - qmlRegisterType ("Gui.VTreatmentUltrafiltration" , 0, 1, "VTreatmentUltrafiltration" ); - qmlRegisterType ("Gui.VTreatmentTime" , 0, 1, "VTreatmentTime" ); - qmlRegisterType ("Gui.VAlarmStatus" , 0, 1, "VAlarmStatus" ); + REGISTER_VIEW_TYPES } /*!