#include "guiview.h" // Project #include "guicontroller.h" using namespace Gui; // We don't have access to view object since it has been created in the GUI // So here connect to the controller which we have access to. // Also here emit the controller signal since for the same reason. GuiView::GuiView(QQuickItem *parent) { Q_UNUSED(parent) connect(GuiController::I(), &GuiController::actionEvaluated, this, &GuiView::actionEvaluated); } void GuiView::notifyActionRequest(GuiAction vAction) { emit GuiController::I()->actionRequested(vAction); }